aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2023-08-12 01:07:39 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2023-08-12 01:07:39 +0200
commit62dcee5f04552bf013454f219d37454895e7d32d (patch)
treeb3658ae4773dec7817924785921572df64dbc80f
parent362c84a08a1b8f1eb7f9c1c37c6ed7cece348ee4 (diff)
downloadgnumach-62dcee5f04552bf013454f219d37454895e7d32d.tar.gz
gnumach-62dcee5f04552bf013454f219d37454895e7d32d.tar.bz2
gnumach-62dcee5f04552bf013454f219d37454895e7d32d.zip
x86_64: Fix printing kernel trap number and error
-rw-r--r--i386/i386/trap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/i386/i386/trap.c b/i386/i386/trap.c
index b3689c9a..e1256254 100644
--- a/i386/i386/trap.c
+++ b/i386/i386/trap.c
@@ -172,7 +172,7 @@ void kernel_trap(struct i386_saved_state *regs)
((short*)0xb8700)[2] = 0x0f30+(type % 10);
#endif
#if 0
-printf("kernel trap %d error %d\n", type, code);
+printf("kernel trap %d error %d\n", (int) type, (int) code);
dump_ss(regs);
#endif