Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/powerpc Fix some printf formats.
details: https://anonhg.NetBSD.org/src/rev/5229a7e2b10f
branches: trunk
changeset: 542787:5229a7e2b10f
user: thorpej <thorpej%NetBSD.org@localhost>
date: Fri Feb 07 04:39:09 2003 +0000
description:
Fix some printf formats.
diffstat:
sys/arch/powerpc/fpu/fpu_emu.c | 8 ++++----
sys/arch/powerpc/ibm4xx/trap.c | 10 +++++-----
2 files changed, 9 insertions(+), 9 deletions(-)
diffs (81 lines):
diff -r b938cd7aeee0 -r 5229a7e2b10f sys/arch/powerpc/fpu/fpu_emu.c
--- a/sys/arch/powerpc/fpu/fpu_emu.c Fri Feb 07 04:14:27 2003 +0000
+++ b/sys/arch/powerpc/fpu/fpu_emu.c Fri Feb 07 04:39:09 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fpu_emu.c,v 1.6 2002/11/25 02:46:10 thorpej Exp $ */
+/* $NetBSD: fpu_emu.c,v 1.7 2003/02/07 04:46:10 thorpej Exp $ */
/*
* Copyright 2001 Wasabi Systems, Inc.
@@ -325,7 +325,7 @@
/* Store as integer */
ra = instr.i_x.i_ra;
rb = instr.i_x.i_rb;
- DPRINTF(FPE_INSN, ("reg %d has %x reg %d has %x\n",
+ DPRINTF(FPE_INSN, ("reg %d has %lx reg %d has %lx\n",
ra, tf->fixreg[ra], rb, tf->fixreg[rb]));
addr = tf->fixreg[rb];
@@ -355,7 +355,7 @@
/* calculate EA of load/store */
ra = instr.i_x.i_ra;
rb = instr.i_x.i_rb;
- DPRINTF(FPE_INSN, ("reg %d has %x reg %d has %x\n",
+ DPRINTF(FPE_INSN, ("reg %d has %lx reg %d has %lx\n",
ra, tf->fixreg[ra], rb, tf->fixreg[rb]));
addr = tf->fixreg[rb];
if (ra != 0)
@@ -372,7 +372,7 @@
/* calculate EA of load/store */
ra = instr.i_d.i_ra;
addr = instr.i_d.i_d;
- DPRINTF(FPE_INSN, ("reg %d has %x displ %lx\n",
+ DPRINTF(FPE_INSN, ("reg %d has %lx displ %lx\n",
ra, tf->fixreg[ra], addr));
if (ra != 0)
addr += tf->fixreg[ra];
diff -r b938cd7aeee0 -r 5229a7e2b10f sys/arch/powerpc/ibm4xx/trap.c
--- a/sys/arch/powerpc/ibm4xx/trap.c Fri Feb 07 04:14:27 2003 +0000
+++ b/sys/arch/powerpc/ibm4xx/trap.c Fri Feb 07 04:39:09 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: trap.c,v 1.11 2003/02/02 20:43:23 matt Exp $ */
+/* $NetBSD: trap.c,v 1.12 2003/02/07 04:39:09 thorpej Exp $ */
/*
* Copyright 2001 Wasabi Systems, Inc.
@@ -141,7 +141,7 @@
ftype = VM_PROT_READ;
-DBPRINTF(TDB_ALL, ("trap(%x) at %x from frame %p &frame %p\n",
+DBPRINTF(TDB_ALL, ("trap(%x) at %lx from frame %p &frame %p\n",
type, frame->srr0, frame, &frame));
switch (type) {
@@ -182,7 +182,7 @@
if (frame->tf_xtra[TF_ESR] & (ESR_DST|ESR_DIZ))
ftype = VM_PROT_WRITE;
-DBPRINTF(TDB_ALL, ("trap(EXC_DSI) at %x %s fault on %p esr %x\n",
+DBPRINTF(TDB_ALL, ("trap(EXC_DSI) at %lx %s fault on %p esr %x\n",
frame->srr0, (ftype&VM_PROT_WRITE) ? "write" : "read", (void *)va, frame->tf_xtra[TF_ESR]));
rv = uvm_fault(map, trunc_page(va), 0, ftype);
KERNEL_UNLOCK();
@@ -211,7 +211,7 @@
if (frame->tf_xtra[TF_ESR] & (ESR_DST|ESR_DIZ))
ftype = VM_PROT_WRITE;
-DBPRINTF(TDB_ALL, ("trap(EXC_DSI|EXC_USER) at %x %s fault on %x %x\n",
+DBPRINTF(TDB_ALL, ("trap(EXC_DSI|EXC_USER) at %lx %s fault on %lx %x\n",
frame->srr0, (ftype&VM_PROT_WRITE) ? "write" : "read", frame->dar, frame->tf_xtra[TF_ESR]));
KASSERT(l == curlwp && (l->l_stat == LSONPROC));
rv = uvm_fault(&p->p_vmspace->vm_map,
@@ -236,7 +236,7 @@
case EXC_ISI|EXC_USER:
KERNEL_PROC_LOCK(l);
ftype = VM_PROT_READ | VM_PROT_EXECUTE;
-DBPRINTF(TDB_ALL, ("trap(EXC_ISI|EXC_USER) at %x %s fault on %x tf %p\n",
+DBPRINTF(TDB_ALL, ("trap(EXC_ISI|EXC_USER) at %lx %s fault on %lx tf %p\n",
frame->srr0, (ftype&VM_PROT_WRITE) ? "write" : "read", frame->srr0, frame));
rv = uvm_fault(&p->p_vmspace->vm_map, trunc_page(frame->srr0), 0, ftype);
if (rv == 0) {
Home |
Main Index |
Thread Index |
Old Index