Improve kernel logging

Current function name is automatically prepended to all log entries.
Helper macros added to log local variables.
This commit is contained in:
2026-07-27 20:41:45 +03:00
parent 3b8125eb0c
commit 572cb7647f
6 changed files with 295 additions and 139 deletions
+1 -1
View File
@@ -30,7 +30,7 @@ __attribute__((interrupt)) void isr_page_fault(__attribute__((unused)) struct in
__asm__ volatile("mov %%cr2, %0" : "=r"(cr2));
char msg[80];
string_format("EXCEPTION: page fault; addr=%x err=%x", 80, msg, cr2, error_code);
string_format("EXCEPTION: page fault; addr=%lx err=%lx", 80, msg, cr2, error_code);
vga_set_string(VGA_HEIGHT - 1, 0, msg, 0x4F);
while (1)