Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/sparc64/sparc64 fix printf formats.



details:   https://anonhg.NetBSD.org/src/rev/574b9dda508b
branches:  trunk
changeset: 341509:574b9dda508b
user:      christos <christos%NetBSD.org@localhost>
date:      Mon Nov 09 02:13:41 2015 +0000

description:
fix printf formats.

diffstat:

 sys/arch/sparc64/sparc64/syscall.c |  12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diffs (37 lines):

diff -r e580eb0a1ec0 -r 574b9dda508b sys/arch/sparc64/sparc64/syscall.c
--- a/sys/arch/sparc64/sparc64/syscall.c        Mon Nov 09 01:55:03 2015 +0000
+++ b/sys/arch/sparc64/sparc64/syscall.c        Mon Nov 09 02:13:41 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: syscall.c,v 1.44 2015/11/06 15:25:42 martin Exp $ */
+/*     $NetBSD: syscall.c,v 1.45 2015/11/09 02:13:41 christos Exp $ */
 
 /*-
  * Copyright (c) 2005 The NetBSD Foundation, Inc.
@@ -79,7 +79,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: syscall.c,v 1.44 2015/11/06 15:25:42 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: syscall.c,v 1.45 2015/11/09 02:13:41 christos Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -312,14 +312,14 @@
 #ifdef DIAGNOSTIC
        KASSERT(p->p_pid != 0);
        KASSERTMSG(!(tf->tf_tstate & TSTATE_PRIV),
-           "syscall %ld, pid %d trap frame %p tstate %lx is privileged %s\n",
-           code, p->p_pid, tf, tf->tf_tstate,
+           "syscall %ld, pid %d trap frame %p tstate 0x%jx is privileged %s\n",
+           code, p->p_pid, tf, (uintmax_t)tf->tf_tstate,
            (tf->tf_tstate & TSTATE_PRIV)?"yes":"no");
        if (p->p_flag & PK_32) {
                KASSERTMSG(tf->tf_tstate & TSTATE_AM,
-                   "32bit syscall %ld, pid %d trap frame %p tstate %lx "
+                   "32bit syscall %ld, pid %d trap frame %p tstate 0x%jx "
                        "has AM %s\n",
-                   code, p->p_pid, tf, tf->tf_tstate,
+                   code, p->p_pid, tf, (uintmax_t)tf->tf_tstate,
                    (tf->tf_tstate & TSTATE_AM)?"yes":"no");
        }
 #endif



Home | Main Index | Thread Index | Old Index