diff options
Diffstat (limited to 'i386')
-rw-r--r-- | i386/i386/debug_i386.c | 2 | ||||
-rw-r--r-- | i386/i386/trap.c | 2 | ||||
-rw-r--r-- | i386/i386at/com.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/i386/i386/debug_i386.c b/i386/i386/debug_i386.c index b897e63..f3e1883 100644 --- a/i386/i386/debug_i386.c +++ b/i386/i386/debug_i386.c @@ -29,7 +29,7 @@ void dump_ss(struct i386_saved_state *st) { - printf("Dump of i386_saved_state %08x:\n", st); + printf("Dump of i386_saved_state %p:\n", st); printf("EAX %08x EBX %08x ECX %08x EDX %08x\n", st->eax, st->ebx, st->ecx, st->edx); printf("ESI %08x EDI %08x EBP %08x ESP %08x\n", diff --git a/i386/i386/trap.c b/i386/i386/trap.c index ebb327c..faee218 100644 --- a/i386/i386/trap.c +++ b/i386/i386/trap.c @@ -374,7 +374,7 @@ int user_trap(regs) extern vm_offset_t phys_last_addr; if ((vm_offset_t)thread < phys_last_addr) { - printf("user_trap: bad thread pointer 0x%x\n", thread); + printf("user_trap: bad thread pointer 0x%p\n", thread); printf("trap type %d, code 0x%x, va 0x%x, eip 0x%x\n", regs->trapno, regs->err, regs->cr2, regs->eip); asm volatile ("1: hlt; jmp 1b"); diff --git a/i386/i386at/com.c b/i386/i386at/com.c index e0d6878..300a60b 100644 --- a/i386/i386at/com.c +++ b/i386/i386at/com.c @@ -676,7 +676,7 @@ comtimer() if (++comtimer_state[i] < 2) continue; /* Its stuck */ -printf("Tty %x was stuck\n", tp); +printf("Tty %p was stuck\n", tp); nch = getc(&tp->t_outq); outb(TXRX((int)tp->t_addr), nch); } |