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 Use PRIx64 and %# requested by phone@
details: https://anonhg.NetBSD.org/src/rev/270cc1da1fc3
branches: trunk
changeset: 341518:270cc1da1fc3
user: christos <christos%NetBSD.org@localhost>
date: Mon Nov 09 20:26:15 2015 +0000
description:
Use PRIx64 and %# requested by phone@
diffstat:
sys/arch/sparc64/sparc64/syscall.c | 17 ++++++++---------
1 files changed, 8 insertions(+), 9 deletions(-)
diffs (40 lines):
diff -r c33d8a3e6d94 -r 270cc1da1fc3 sys/arch/sparc64/sparc64/syscall.c
--- a/sys/arch/sparc64/sparc64/syscall.c Mon Nov 09 17:52:59 2015 +0000
+++ b/sys/arch/sparc64/sparc64/syscall.c Mon Nov 09 20:26:15 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: syscall.c,v 1.45 2015/11/09 02:13:41 christos Exp $ */
+/* $NetBSD: syscall.c,v 1.46 2015/11/09 20:26:15 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.45 2015/11/09 02:13:41 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: syscall.c,v 1.46 2015/11/09 20:26:15 christos Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -312,15 +312,14 @@
#ifdef DIAGNOSTIC
KASSERT(p->p_pid != 0);
KASSERTMSG(!(tf->tf_tstate & TSTATE_PRIV),
- "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");
+ "syscall %ld, pid %d trap frame %p tstate %#" PRIx64
+ " is privileged %s\n", code, p->p_pid, tf, 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 0x%jx "
- "has AM %s\n",
- code, p->p_pid, tf, (uintmax_t)tf->tf_tstate,
- (tf->tf_tstate & TSTATE_AM)?"yes":"no");
+ "32bit syscall %ld, pid %d trap frame %p tstate %#" PRIx64
+ " has AM %s\n", code, p->p_pid, tf, tf->tf_tstate,
+ (tf->tf_tstate & TSTATE_AM) ? "yes" : "no");
}
#endif
Home |
Main Index |
Thread Index |
Old Index