Skip to content

Commit

Permalink
🐛 异常信息
Browse files Browse the repository at this point in the history
  • Loading branch information
StevenBaby committed Apr 6, 2023
1 parent 97b0b34 commit 1227160
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion src/fs/namei.c
Original file line number Diff line number Diff line change
@@ -6,7 +6,6 @@
#include <onix/task.h>
#include <onix/assert.h>
#include <onix/debug.h>
#include <onix/stat.h>

#define LOGK(fmt, args...) DEBUGK(fmt, ##args)

2 changes: 1 addition & 1 deletion src/kernel/interrupt.c
Original file line number Diff line number Diff line change
@@ -148,7 +148,7 @@ void exception_handler(
message = messages[15];
}

printk("\nEXCEPTION : %s \n", messages[vector]);
printk("\nEXCEPTION : %s \n", message);
printk(" VECTOR : 0x%02X\n", vector);
printk(" ERROR : 0x%08X\n", error);
printk(" EFLAGS : 0x%08X\n", eflags);

0 comments on commit 1227160

Please sign in to comment.