|
PatchworkOS
966e257
A non-POSIX operating system.
|
#include <kernel/log/log.h>#include <kernel/cpu/cpu.h>#include <kernel/drivers/com.h>#include <kernel/init/boot_info.h>#include <kernel/log/log_file.h>#include <kernel/log/log_screen.h>#include <kernel/sched/clock.h>#include <kernel/sched/timer.h>#include <kernel/sync/lock.h>#include <boot/boot_info.h>#include <kernel/version.h>#include <stdarg.h>#include <stdint.h>#include <stdio.h>#include <sys/io.h>#include <sys/proc.h>Go to the source code of this file.
Functions | |
| static void | log_splash (void) |
| void | log_init (void) |
| Initialize the logging system. | |
| void | log_screen_enable () |
| Enable logging to the screen. | |
| void | log_screen_disable (void) |
| Disable logging to the screen. | |
| 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. | |
Variables | |
| static lock_t | lock = LOCK_CREATE() |
| static char | lineBuffer [LOG_MAX_BUFFER] = {0} |
| static char | workingBuffer [LOG_MAX_BUFFER] = {0} |
| static log_output_t | outputs = 0 |
| static log_level_t | minLevel = 0 |
| static bool | isLastCharNewline = 0 |
| static bool | firstHeaderPrinted = false |
| static const char * | levelNames [] |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |