1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 06:58:11 +00:00

Kernel: Print all logbuffer from ConsoleDevice to debug Virtual Console

This commit is contained in:
Liav A 2021-05-14 16:39:28 +03:00 committed by Andreas Kling
parent 2e565f1b8a
commit dbccfc3281
3 changed files with 35 additions and 5 deletions

View file

@ -38,6 +38,11 @@ UNMAP_AFTER_INIT ConsoleManagement::ConsoleManagement()
UNMAP_AFTER_INIT void ConsoleManagement::initialize()
{
for (size_t index = 0; index < 4; index++) {
// FIXME: Better determine the debug TTY we chose...
if (index == 1) {
m_consoles.append(VirtualConsole::create_with_preset_log(index, ConsoleDevice::the().logbuffer()));
continue;
}
m_consoles.append(VirtualConsole::create(index));
}
// Note: By default the active console is the first one.