diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2024-08-25 23:50:02 +0200 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2024-08-25 23:51:38 +0200 |
commit | 3cbb6c48aba3e50c6c6430f9abcc6adcff1d7252 (patch) | |
tree | 5bf5c78d2e6d4d2f802e3aecb6e1de69a14bc046 | |
parent | bc7cd6773fcd6bf51156725b5c8881cb00ef45b7 (diff) | |
download | hurd-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.
-rw-r--r-- | libdiskfs/boot-start.c | 8 | ||||
-rw-r--r-- | startup/startup.c | 7 |
2 files changed, 11 insertions, 4 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); diff --git a/startup/startup.c b/startup/startup.c index a1214800..5666efc6 100644 --- a/startup/startup.c +++ b/startup/startup.c @@ -899,8 +899,11 @@ launch_core_servers (void) err = install_as_translator (); if (err) - /* Good luck. Who knows, maybe it's an old installation. */ - error (0, err, "Failed to bind to " _SERVERS_STARTUP); + { + /* Good luck. Who knows, maybe it's an old installation. */ + mach_print ("Failed to bind to " _SERVERS_STARTUP "\n"); + error (0, err, "Failed to bind to " _SERVERS_STARTUP); + } if (verbose) fprintf (stderr, "Installed on /servers/startup\n"); |