From 3cbb6c48aba3e50c6c6430f9abcc6adcff1d7252 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Sun, 25 Aug 2024 23:50:02 +0200 Subject: 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. --- libdiskfs/boot-start.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'libdiskfs/boot-start.c') 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); -- cgit v1.2.3