mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-11 10:18:15 +09:00
Kernel: Only write text to serial console if no ConsoleDevice
attached
Otherwise we write everything twice on the serial port
This commit is contained in:
parent
b060643941
commit
26752ee8df
Notes:
sideshowbarker
2024-07-16 22:58:46 +09:00
Author: https://github.com/spholz
Commit: 26752ee8df
Pull-request: https://github.com/SerenityOS/serenity/pull/22268
Reviewed-by: https://github.com/ADKaster ✅
1 changed files with 3 additions and 3 deletions
|
@ -69,12 +69,12 @@ static void critical_console_out(char ch)
|
|||
|
||||
static void console_out(char ch)
|
||||
{
|
||||
if (s_serial_debug_enabled)
|
||||
serial_putch(ch);
|
||||
|
||||
if (DeviceManagement::the().is_console_device_attached()) {
|
||||
DeviceManagement::the().console_device().put_char(ch);
|
||||
} else {
|
||||
if (s_serial_debug_enabled)
|
||||
serial_putch(ch);
|
||||
|
||||
#if ARCH(X86_64)
|
||||
bochs_debug_output(ch);
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue