From 00cc8736f10098dedf6b856b9ad8bd0094211263 Mon Sep 17 00:00:00 2001 From: Benji Dial Date: Thu, 18 Feb 2021 11:56:08 -0500 Subject: vbe support, truecolor window manager pixbufs --- src/kernel/log.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'src/kernel/log.c') diff --git a/src/kernel/log.c b/src/kernel/log.c index 6bad1cc..2819a2e 100644 --- a/src/kernel/log.c +++ b/src/kernel/log.c @@ -52,8 +52,16 @@ void logf(enum log_level level, const char *format, ...) { while (*s) logch(*(s++)); break; + case 'n':; + uint32_t d = va_arg(args, uint32_t); + if (d >= 0x80000000) { + logch('-'); + d = -d; + } + goto put_dec; case 'd':; - const uint32_t d = va_arg(args, uint32_t); + d = va_arg(args, uint32_t); + put_dec: if (d == 0) { logch('0'); break; -- cgit v1.2.3