Go to the source code of this file.
|
| static size_t | klog_read (file_t *file, void *buffer, size_t count, size_t *offset) |
| |
| static size_t | klog_write (file_t *file, const void *buffer, size_t count, size_t *offset) |
| |
| static void | log_splash (void) |
| |
| void | log_init (void) |
| | Initialize the logging system.
|
| |
| void | log_expose (void) |
| | Expose kernel logs via the /dev/klog file.
|
| |
| static void | log_write (const char *string, uint64_t length) |
| |
| static void | log_print_header (log_level_t level) |
| |
| static void | log_handle_char (log_level_t level, char chr) |
| |
| void | log_nprint (log_level_t level, const char *string, uint64_t length) |
| | Print a unformatted log message.
|
| |
| void | log_print (log_level_t level, const char *format,...) |
| | Print a formatted log message.
|
| |
| void | log_vprint (log_level_t level, const char *format, va_list args) |
| | Print a formatted log message with a va_list.
|
| |
◆ klog_read()
Definition at line 45 of file log.c.
◆ klog_write()
Definition at line 69 of file log.c.
◆ log_splash()
| static void log_splash |
( |
void |
| ) |
|
|
static |
Definition at line 83 of file log.c.
◆ log_write()
| static void log_write |
( |
const char * |
string, |
|
|
uint64_t |
length |
|
) |
| |
|
static |
◆ log_print_header()
◆ log_handle_char()
| static void log_handle_char |
( |
log_level_t |
level, |
|
|
char |
chr |
|
) |
| |
|
static |
◆ lock
Definition at line 25 of file log.c.
◆ klogBuffer
Definition at line 27 of file log.c.
◆ klogHead
Definition at line 28 of file log.c.
◆ klog
Definition at line 29 of file log.c.
◆ lineBuffer
Definition at line 31 of file log.c.
◆ workingBuffer
Definition at line 32 of file log.c.
◆ isLastCharNewline
Definition at line 33 of file log.c.
◆ firstHeaderPrinted
Definition at line 34 of file log.c.
◆ levelNames
Initial value:
Definition at line 36 of file log.c.
◆ klogOps
Initial value:= {
}
static size_t klog_write(file_t *file, const void *buffer, size_t count, size_t *offset)
static size_t klog_read(file_t *file, void *buffer, size_t count, size_t *offset)
Definition at line 78 of file log.c.