mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-10 01:59:31 +00:00
Kernel: Support new lines when doing critical printing
If we are printing strings in the critical path, handling new lines require us to break abstraction a bit to print new lines. Fixes #7562.
This commit is contained in:
parent
e8d85b0694
commit
47c1a31f89
Notes:
sideshowbarker
2024-07-18 16:57:02 +09:00
Author: https://github.com/supercomputer7
Commit: 47c1a31f89
Pull-request: https://github.com/SerenityOS/serenity/pull/7733
Issue: https://github.com/SerenityOS/serenity/issues/7562
6 changed files with 40 additions and 30 deletions
|
@ -77,7 +77,7 @@ static void critical_console_out(char ch)
|
|||
// We emit chars directly to the string. this is necessary in few cases,
|
||||
// especially when we want to avoid any memory allocations...
|
||||
if (GraphicsManagement::is_initialized() && GraphicsManagement::the().console()) {
|
||||
GraphicsManagement::the().console()->write(ch);
|
||||
GraphicsManagement::the().console()->write(ch, true);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue