]> git.dujemihanovic.xyz Git - nameless-os.git/blobdiff - kernel/arch/x86/tty/tty.c
Add panic facility
[nameless-os.git] / kernel / arch / x86 / tty / tty.c
index 861610dde3bc80b08231cc8cbe745abd96dfd615..c55cdd41eb8fe0c06afa792a63e9d2c0d767060f 100644 (file)
@@ -176,7 +176,7 @@ void kprintq(uint64_t qword)
        kprintc(hex_chars[temp], VGA_COLOR_LIGHT_GRAY);
 }
 
-int kprintdec(uint32_t num)
+int kprintdec(uint32_t num, uint8_t color)
 {
        char buffer[11];
        int digits = 10;
@@ -207,6 +207,6 @@ int kprintdec(uint32_t num)
                }
        }
 
-       kprint(buffer, 0);
+       kprint(buffer, color);
        return digits;
 }