Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/mips/mips Fix printf format issues.
details: https://anonhg.NetBSD.org/src/rev/d57605ffeca6
branches: trunk
changeset: 532132:d57605ffeca6
user: thorpej <thorpej%NetBSD.org@localhost>
date: Fri May 31 21:09:03 2002 +0000
description:
Fix printf format issues.
diffstat:
sys/arch/mips/mips/db_interface.c | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diffs (29 lines):
diff -r e429a4f761ed -r d57605ffeca6 sys/arch/mips/mips/db_interface.c
--- a/sys/arch/mips/mips/db_interface.c Fri May 31 20:57:41 2002 +0000
+++ b/sys/arch/mips/mips/db_interface.c Fri May 31 21:09:03 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: db_interface.c,v 1.42 2002/03/11 16:39:40 uch Exp $ */
+/* $NetBSD: db_interface.c,v 1.43 2002/05/31 21:09:03 thorpej Exp $ */
/*
* Mach Operating System
@@ -402,7 +402,8 @@
uint32_t __val; \
\
asm volatile("mfc0 %0,$" ___STRING(reg) : "=r"(__val)); \
- printf(" %s:%*s %#x\n", name, FLDWIDTH - strlen(name), "", __val); \
+ printf(" %s:%*s %#x\n", name, FLDWIDTH - (int) strlen(name), \
+ "", __val); \
} while (0)
/* XXX not 64-bit ABI safe! */
@@ -420,7 +421,8 @@
"dsrl %M0,$1,32 \n\t" \
".set pop" \
: "=r"(__val)); \
- printf(" %s:%*s %#llx\n", name, FLDWIDTH - strlen(name), "", __val); \
+ printf(" %s:%*s %#llx\n", name, FLDWIDTH - (int) strlen(name), \
+ "", __val); \
} while (0)
void
Home |
Main Index |
Thread Index |
Old Index