From 7c2933aae1985b3372e0c8f2650ba988a8f95a87 Mon Sep 17 00:00:00 2001 From: Bananymous Date: Tue, 26 Mar 2024 20:10:09 +0200 Subject: [PATCH] Kernel: Fix ISR error code formatting to 32 bit --- kernel/kernel/IDT.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/kernel/IDT.cpp b/kernel/kernel/IDT.cpp index 069a8410d9..1b8ea33d93 100644 --- a/kernel/kernel/IDT.cpp +++ b/kernel/kernel/IDT.cpp @@ -262,7 +262,7 @@ namespace Kernel #if ARCH(x86_64) dwarnln( - "{} (error code: 0x{16H}), pid {}, tid {}\r\n" + "{} (error code: 0x{8H}), pid {}, tid {}\r\n" "Register dump\r\n" "rax=0x{16H}, rbx=0x{16H}, rcx=0x{16H}, rdx=0x{16H}\r\n" "rsp=0x{16H}, rbp=0x{16H}, rdi=0x{16H}, rsi=0x{16H}\r\n" @@ -276,7 +276,7 @@ namespace Kernel ); #elif ARCH(i686) dwarnln( - "{} (error code: 0x{16H}), pid {}, tid {}\r\n" + "{} (error code: 0x{8H}), pid {}, tid {}\r\n" "Register dump\r\n" "eax=0x{8H}, ebx=0x{8H}, ecx=0x{8H}, edx=0x{8H}\r\n" "esp=0x{8H}, ebp=0x{8H}, edi=0x{8H}, esi=0x{8H}\r\n"