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:
Liav A 2021-06-03 17:41:27 +03:00 committed by Linus Groh
commit 47c1a31f89
Notes: sideshowbarker 2024-07-18 16:57:02 +09:00
6 changed files with 40 additions and 30 deletions

View file

@ -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);
}
}