From fad02fc2ac0537e9f42515bf0067c415afbdb468 Mon Sep 17 00:00:00 2001 From: Marcus Overhagen Date: Mon, 28 Jan 2008 22:43:22 +0000 Subject: [PATCH] Print thread ids in decimal. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23777 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/system/kernel/arch/x86/arch_debug.cpp | 4 ++-- src/system/kernel/arch/x86/arch_int.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/system/kernel/arch/x86/arch_debug.cpp b/src/system/kernel/arch/x86/arch_debug.cpp index c0e71e7b1f..7debed9e15 100644 --- a/src/system/kernel/arch/x86/arch_debug.cpp +++ b/src/system/kernel/arch/x86/arch_debug.cpp @@ -275,7 +275,7 @@ stack_trace(int argc, char **argv) &oldPageDirectory); if (thread != NULL) { - kprintf("stack trace for thread 0x%lx \"%s\"\n", thread->id, + kprintf("stack trace for thread %ld \"%s\"\n", thread->id, thread->name); kprintf(" kernel stack: %p to %p\n", @@ -497,7 +497,7 @@ dump_iframes(int argc, char **argv) } if (thread != NULL) - kprintf("iframes for thread 0x%lx \"%s\"\n", thread->id, thread->name); + kprintf("iframes for thread %ld \"%s\"\n", thread->id, thread->name); struct iframe* frame = find_previous_iframe(thread, x86_read_ebp()); while (frame != NULL) { diff --git a/src/system/kernel/arch/x86/arch_int.c b/src/system/kernel/arch/x86/arch_int.c index 1207acf4b2..9d1a57051b 100644 --- a/src/system/kernel/arch/x86/arch_int.c +++ b/src/system/kernel/arch/x86/arch_int.c @@ -328,7 +328,7 @@ invalid_exception(struct iframe* frame) { struct thread* thread = thread_get_current_thread(); char name[32]; - panic("unhandled trap 0x%lx (%s) at ip 0x%lx, thread 0x%lx!\n", + panic("unhandled trap 0x%lx (%s) at ip 0x%lx, thread %ld!\n", frame->vector, exception_name(frame->vector, name, sizeof(name)), frame->eip, thread ? thread->id : -1); }