[kernel] Revive the debugcon logger as a kernel thread

The debugcon logger is now separate from logger::output, and is instead
a kernel-internal thread that watches for logs and prints them to the
deubcon device.
This commit is contained in:
Justin C. Miller
2023-02-08 22:32:01 -08:00
parent 71069cb38b
commit f05a1d3310
11 changed files with 124 additions and 9 deletions

View File

@@ -61,7 +61,7 @@ logger::output(level severity, logs area, const char *fmt, va_list args)
char buffer[buffer_len];
entry *header = reinterpret_cast<entry *>(buffer);
size_t size = sizeof(buffer);
size_t size = sizeof(entry);
size += util::vformat({header->message, message_len}, fmt, args);
util::scoped_lock lock {m_lock};