From 8941d831bb70ec807ecea0f5db5b872fb28e221f Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Boric Date: Sat, 23 Jan 2021 12:05:03 +0100 Subject: [PATCH] Kernel: Allow "serial_debug" everywhere on the command line --- Kernel/init.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Kernel/init.cpp b/Kernel/init.cpp index 78aa94e2d4..b16142660b 100644 --- a/Kernel/init.cpp +++ b/Kernel/init.cpp @@ -307,10 +307,8 @@ void setup_serial_debug() // serial_debug will output all the klog() and dbgln() data to COM1 at // 8-N-1 57600 baud. this is particularly useful for debugging the boot // process on live hardware. - // - // note: it must be the first option in the boot cmdline. u32 cmdline = low_physical_to_virtual(multiboot_info_ptr->cmdline); - if (cmdline && StringView(reinterpret_cast(cmdline)).starts_with("serial_debug")) + if (cmdline && StringView(reinterpret_cast(cmdline)).contains("serial_debug")) set_serial_debug(true); }