Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-1-6]: src/sys/kern Pull up revision 1.48 (requested by eeh in tic...



details:   https://anonhg.NetBSD.org/src/rev/1be22ea9e9a0
branches:  netbsd-1-6
changeset: 527656:1be22ea9e9a0
user:      tv <tv%NetBSD.org@localhost>
date:      Fri May 31 02:31:55 2002 +0000

description:
Pull up revision 1.48 (requested by eeh in ticket #101):
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 914ab8623b68 -r 1be22ea9e9a0 sys/kern/kern_xxx.c
--- a/sys/kern/kern_xxx.c       Fri May 31 00:03:52 2002 +0000
+++ b/sys/kern/kern_xxx.c       Fri May 31 02:31:55 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.47.10.1 2002/05/31 02:31:55 tv 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.47.10.1 2002/05/31 02:31:55 tv 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