diff options
author | Stefan Fritsch <sf@cvs.openbsd.org> | 2014-04-30 06:24:24 +0000 |
---|---|---|
committer | Stefan Fritsch <sf@cvs.openbsd.org> | 2014-04-30 06:24:24 +0000 |
commit | ed96e4debf8db2e425a80e384226b848d6d3da62 (patch) | |
tree | 7df14eaac4eb2cd1c5ebb409e1571a8fa1290ac8 /sys/arch | |
parent | 604c535a542e97d7ea293687c4017833571acc0e (diff) |
format string fixes for (u)int64 vars
ok kettenis@
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/amd64/amd64/cpu.c | 4 | ||||
-rw-r--r-- | sys/arch/amd64/amd64/trap.c | 10 |
2 files changed, 7 insertions, 7 deletions
diff --git a/sys/arch/amd64/amd64/cpu.c b/sys/arch/amd64/amd64/cpu.c index 19e054efcd2..88725f77d78 100644 --- a/sys/arch/amd64/amd64/cpu.c +++ b/sys/arch/amd64/amd64/cpu.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cpu.c,v 1.60 2014/03/29 18:09:28 guenther Exp $ */ +/* $OpenBSD: cpu.c,v 1.61 2014/04/30 06:24:23 sf Exp $ */ /* $NetBSD: cpu.c,v 1.1 2003/04/26 18:39:26 fvdl Exp $ */ /*- @@ -535,7 +535,7 @@ cpu_attach(struct device *parent, struct device *self, void *aux) if (mp_verbose) { printf("%s: kstack at 0x%lx for %d bytes\n", sc->sc_dev.dv_xname, kstack, USPACE); - printf("%s: idle pcb at %p, idle sp at 0x%lx\n", + printf("%s: idle pcb at %p, idle sp at 0x%llx\n", sc->sc_dev.dv_xname, pcb, pcb->pcb_rsp); } #endif diff --git a/sys/arch/amd64/amd64/trap.c b/sys/arch/amd64/amd64/trap.c index 3987b2c3fc5..4ef833ba31e 100644 --- a/sys/arch/amd64/amd64/trap.c +++ b/sys/arch/amd64/amd64/trap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: trap.c,v 1.36 2014/04/18 11:51:16 guenther Exp $ */ +/* $OpenBSD: trap.c,v 1.37 2014/04/30 06:24:23 sf Exp $ */ /* $NetBSD: trap.c,v 1.2 2003/05/04 23:51:56 fvdl Exp $ */ /*- @@ -205,12 +205,12 @@ trap(struct trapframe *frame) else printf("unknown trap %ld", (u_long)frame->tf_trapno); printf(" in %s mode\n", (type & T_USER) ? "user" : "supervisor"); - printf("trap type %d code %lx rip %lx cs %lx rflags %lx cr2 " - " %lx cpl %x rsp %lx\n", - type, frame->tf_err, (u_long)frame->tf_rip, frame->tf_cs, + printf("trap type %d code %llx rip %llx cs %llx rflags %llx cr2 " + " %llx cpl %x rsp %llx\n", + type, frame->tf_err, frame->tf_rip, frame->tf_cs, frame->tf_rflags, rcr2(), curcpu()->ci_ilevel, frame->tf_rsp); - panic("trap type %d, code=%lx, pc=%lx", + panic("trap type %d, code=%llx, pc=%llx", type, frame->tf_err, frame->tf_rip); /*NOTREACHED*/ |