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
commit dbccfc3281
Notes: sideshowbarker 2024-07-18 18:00:18 +09:00
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.