aboutsummaryrefslogtreecommitdiff
path: root/libdiskfs
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2024-08-25 23:50:02 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2024-08-25 23:51:38 +0200
commit3cbb6c48aba3e50c6c6430f9abcc6adcff1d7252 (patch)
tree5bf5c78d2e6d4d2f802e3aecb6e1de69a14bc046 /libdiskfs
parentbc7cd6773fcd6bf51156725b5c8881cb00ef45b7 (diff)
downloadhurd-3cbb6c48aba3e50c6c6430f9abcc6adcff1d7252.tar.gz
hurd-3cbb6c48aba3e50c6c6430f9abcc6adcff1d7252.tar.bz2
hurd-3cbb6c48aba3e50c6c6430f9abcc6adcff1d7252.zip
Make sure to also print early-fatal errors on mach console
In case the user is using a debug kernel, they will get to see these.
Diffstat (limited to 'libdiskfs')
-rw-r--r--libdiskfs/boot-start.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/libdiskfs/boot-start.c b/libdiskfs/boot-start.c
index 8c159f33..19967ef3 100644
--- a/libdiskfs/boot-start.c
+++ b/libdiskfs/boot-start.c
@@ -185,7 +185,8 @@ diskfs_start_bootstrap (void)
&retry, retry_name, &execnode);
if (err)
{
- error (0, err, "cannot set translator on %s", _SERVERS_EXEC);
+ mach_print ("cannot set translator on " _SERVERS_EXEC "\n");
+ error (0, err, "cannot set translator on " _SERVERS_EXEC);
mach_port_deallocate (mach_task_self (), diskfs_exec_ctl);
}
else
@@ -319,7 +320,10 @@ diskfs_start_bootstrap (void)
With none supplied, it will use the defaults. */
NULL, 0, 0, 0, 0, 0);
if (err)
- error (1, err, "Executing '%s'", exec_argv);
+ {
+ mach_print ("Failed to execute startup\n");
+ error (1, err, "Executing '%s'", exec_argv);
+ }
free (exec_argv);
free (exec_env);
mach_port_deallocate (mach_task_self (), root_pt);