From 1d7ba814dc0a13a8bd5afddd48f66b9fac3182cf Mon Sep 17 00:00:00 2001 From: Daniel Samson <12231216+daniel-samson@users.noreply.github.com> Date: Mon, 13 Jul 2026 05:30:56 +0100 Subject: [PATCH] fix efi: debug prefix --- boot/efi.zig | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/boot/efi.zig b/boot/efi.zig index 8ce96e8..f827122 100644 --- a/boot/efi.zig +++ b/boot/efi.zig @@ -29,7 +29,7 @@ pub fn main() uefi.Status { // report the reason (boot services are still up) and park the machine so the // message stays on screen. boot() catch |err| { - log("\r\ndanos: boot failed: "); + log("\r\nEFI: boot failed: "); logBytes(@errorName(err)); log("\r\n"); while (true) asm volatile ("hlt"); @@ -65,14 +65,14 @@ fn boot() !noreturn { // Best effort: a volume without /system/services/init still boots (kernel-only). loadInit(bs, &boot_information) catch |err| { - log("danos: no /system/services/init ("); + log("EFI: no /system/services/init ("); logBytes(@errorName(err)); log(") - booting without user space\r\n"); }; // Best effort: the initial_ramdisk (VFS server + drivers) is optional too. loadInitialRamdisk(bs, &boot_information) catch |err| { - log("danos: no initial_ramdisk ("); + log("EFI: no initial_ramdisk ("); logBytes(@errorName(err)); log(")\r\n"); }; @@ -84,7 +84,7 @@ fn boot() !noreturn { // the map and exiting would invalidate the map key. const cr3 = try buildBootstrapTables(bs, &boot_information); - log("danos: kernel loaded, exiting boot services\r\n"); + log("EFI: kernel loaded, exiting boot services\r\n"); boot_information.memory_map = try exitBootServices(bs); // Switch onto our tables and jump to the kernel in one uninterruptible step. @@ -395,7 +395,7 @@ fn loadInit(bs: *uefi.tables.BootServices, boot_information: *BootInformation) ! const image = try loadFile(bs, init_file_name); boot_information.init_base = @intFromPtr(image.ptr); boot_information.init_len = image.len; - log("danos: /system/services/init loaded\r\n"); + log("EFI: /system/services/init loaded\r\n"); } /// Ferry the initial_ramdisk (the VFS server + drivers) to the kernel, same as init. @@ -403,7 +403,7 @@ fn loadInitialRamdisk(bs: *uefi.tables.BootServices, boot_information: *BootInfo const image = try loadFile(bs, initial_ramdisk_file_name); boot_information.initial_ramdisk_base = @intFromPtr(image.ptr); boot_information.initial_ramdisk_len = image.len; - log("danos: initial_ramdisk loaded\r\n"); + log("EFI: initial_ramdisk loaded\r\n"); } /// Validate the ELF, copy every PT_LOAD segment to its physical address, and