Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern Since a register_t is probably not an int, don't tr...
details: https://anonhg.NetBSD.org/src/rev/83e0ee28e99d
branches: trunk
changeset: 532064:83e0ee28e99d
user: eeh <eeh%NetBSD.org@localhost>
date: Fri May 31 01:10:35 2002 +0000
description:
Since a register_t is probably not an int, don't try to print it with %d.
diffstat:
sys/kern/kern_xxx.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diffs (42 lines):
diff -r 90519f65ba88 -r 83e0ee28e99d sys/kern/kern_xxx.c
--- a/sys/kern/kern_xxx.c Fri May 31 00:52:20 2002 +0000
+++ b/sys/kern/kern_xxx.c Fri May 31 01:10:35 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kern_xxx.c,v 1.47 2001/11/12 15:25:18 lukem Exp $ */
+/* $NetBSD: kern_xxx.c,v 1.48 2002/05/31 01:10:35 eeh Exp $ */
/*
* Copyright (c) 1982, 1986, 1989, 1993
@@ -36,7 +36,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_xxx.c,v 1.47 2001/11/12 15:25:18 lukem Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_xxx.c,v 1.48 2002/05/31 01:10:35 eeh Exp $");
#include "opt_syscall_debug.h"
@@ -113,9 +113,9 @@
printf("proc %d (%s): %s num ", p->p_pid, p->p_comm, em->e_name);
if (code < 0 || code >= em->e_nsysent)
- printf("OUT OF RANGE (%d)", code);
+ printf("OUT OF RANGE (%ld)", (long)code);
else {
- printf("%d call: %s", code, em->e_syscallnames[code]);
+ printf("%ld call: %s", (long)code, em->e_syscallnames[code]);
if (scdebug & SCDEBUG_SHOWARGS) {
printf("(");
for (i = 0; i < sy->sy_argsize / sizeof(register_t);
@@ -149,9 +149,9 @@
printf("proc %d (%s): %s num ", p->p_pid, p->p_comm, em->e_name);
if (code < 0 || code >= em->e_nsysent)
- printf("OUT OF RANGE (%d)", code);
+ printf("OUT OF RANGE (%ld)", (long)code);
else
- printf("%d ret: err = %d, rv = 0x%lx,0x%lx", code,
+ printf("%ld ret: err = %d, rv = 0x%lx,0x%lx", (long)code,
error, (long)retval[0], (long)retval[1]);
printf("\n");
}
Home |
Main Index |
Thread Index |
Old Index