|
ArvernOS
|
This is the general kernel logging module. More...
Macros | |
| #define | __LOG_TIMESTAMP_FORMAT "[%3" PRIu64 ".%03" PRIu64 "%03" PRIu64 "] " |
| #define | __LOG_STREAM(time_us, level, format, ...) |
| Writes one log line to the structured logger (serial port). | |
| #define | __LOG(level, format, ...) |
| Writes one log line, using the same timestamp for the whole message. | |
This is the general kernel logging module.
In release mode, the logging levels available are:
In debug mode, the following additional logging levels are available:
Each kernel module should ideally have its own logging header that depends on this one. The main use case is to have more configurable loggers that can be enabled/disabled depending on the needs.
| #define __LOG_TIMESTAMP_FORMAT "[%3" PRIu64 ".%03" PRIu64 "%03" PRIu64 "] " |
Timestamp prefix ([seconds.microseconds]) shared by the structured logger and the console output. The seconds are right-aligned on 3 characters and the fractional part is zero-padded to 6 digits.