Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/i386/i386 Use PRIxREGISTER suggested by Kamil.



details:   https://anonhg.NetBSD.org/src/rev/61c41fc5ee2b
branches:  trunk
changeset: 999351:61c41fc5ee2b
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Wed May 29 14:28:37 2019 +0000

description:
Use PRIxREGISTER suggested by Kamil.

diffstat:

 sys/arch/i386/i386/trap.c |  14 ++++++++------
 1 files changed, 8 insertions(+), 6 deletions(-)

diffs (43 lines):

diff -r 86d26de68ae1 -r 61c41fc5ee2b sys/arch/i386/i386/trap.c
--- a/sys/arch/i386/i386/trap.c Wed May 29 14:03:36 2019 +0000
+++ b/sys/arch/i386/i386/trap.c Wed May 29 14:28:37 2019 +0000
@@ -1,5 +1,5 @@
 
-/*     $NetBSD: trap.c,v 1.300 2019/04/06 03:06:25 thorpej Exp $       */
+/*     $NetBSD: trap.c,v 1.301 2019/05/29 14:28:37 msaitoh Exp $       */
 
 /*-
  * Copyright (c) 1998, 2000, 2005, 2006, 2007, 2008 The NetBSD Foundation, Inc.
@@ -69,7 +69,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.300 2019/04/06 03:06:25 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.301 2019/05/29 14:28:37 msaitoh Exp $");
 
 #include "opt_ddb.h"
 #include "opt_kgdb.h"
@@ -467,8 +467,9 @@
        case T_STKFLT|T_USER:
        case T_ALIGNFLT|T_USER:
 #ifdef TRAP_SIGDEBUG
-               printf("pid %d.%d (%s): BUS/SEGV (%#x) at eip %#x addr %#lx\n",
-                   p->p_pid, l->l_lid, p->p_comm, type, frame->tf_eip, rcr2());
+               printf("pid %d.%d (%s): BUS/SEGV (%#x) at eip %#x addr %#"
+                   PRIxREGISTER "\n", p->p_pid, l->l_lid, p->p_comm,
+                   type, frame->tf_eip, rcr2());
                frame_dump(frame, pcb);
 #endif
                KSI_INIT_TRAP(&ksi);
@@ -508,8 +509,9 @@
        case T_PRIVINFLT|T_USER:        /* privileged instruction fault */
        case T_FPOPFLT|T_USER:          /* coprocessor operand fault */
 #ifdef TRAP_SIGDEBUG
-               printf("pid %d.%d (%s): ILL at eip %#x addr %#lx\n",
-                   p->p_pid, l->l_lid, p->p_comm, frame->tf_eip, rcr2());
+               printf("pid %d.%d (%s): ILL at eip %#x addr %#"
+                   PRIxREGISTER "\n", p->p_pid, l->l_lid, p->p_comm,
+                   frame->tf_eip, rcr2());
                frame_dump(frame, pcb);
 #endif
                KSI_INIT_TRAP(&ksi);



Home | Main Index | Thread Index | Old Index