X-Git-Url: https://scm.lunaixsky.com/lunaix-os.git/blobdiff_plain/05b7549a0f980efa33265a091a5174a78851ce05..22529b36b0a16e21a309aa1cc2f5ef6695541902:/lunaix-os/kernel/kprintf.c?ds=sidebyside diff --git a/lunaix-os/kernel/kprintf.c b/lunaix-os/kernel/kprintf.c index 82202ba..425fc22 100644 --- a/lunaix-os/kernel/kprintf.c +++ b/lunaix-os/kernel/kprintf.c @@ -5,7 +5,7 @@ #define MAX_KPRINTF_BUF_SIZE 1024 #define MAX_XFMT_SIZE 1024 -char buf[MAX_KPRINTF_BUF_SIZE]; +static char buf[MAX_KPRINTF_BUF_SIZE]; void __kprintf(const char* component, const char* fmt, va_list args) { @@ -26,7 +26,7 @@ __kprintf(const char* component, const char* fmt, va_list args) { break; case '1': tty_set_theme(VGA_COLOR_BROWN, current_theme >> 12); - snprintf(expanded_fmt, MAX_XFMT_SIZE, "[%s] (%s) %s", "INFO", component, fmt); + snprintf(expanded_fmt, MAX_XFMT_SIZE, "[%s] (%s) %s", "WARN", component, fmt); break; case '2': tty_set_theme(VGA_COLOR_LIGHT_RED, current_theme >> 12);