Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/amd64/amd64 print also ksi_code.



details:   https://anonhg.NetBSD.org/src/rev/ca1443c3ef0a
branches:  trunk
changeset: 451315:ca1443c3ef0a
user:      christos <christos%NetBSD.org@localhost>
date:      Wed May 15 13:49:10 2019 +0000

description:
print also ksi_code.

diffstat:

 sys/arch/amd64/amd64/trap.c |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (32 lines):

diff -r 21abf6d83b10 -r ca1443c3ef0a sys/arch/amd64/amd64/trap.c
--- a/sys/arch/amd64/amd64/trap.c       Wed May 15 13:47:41 2019 +0000
+++ b/sys/arch/amd64/amd64/trap.c       Wed May 15 13:49:10 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: trap.c,v 1.119 2019/04/06 03:06:24 thorpej Exp $       */
+/*     $NetBSD: trap.c,v 1.120 2019/05/15 13:49:10 christos Exp $      */
 
 /*
  * Copyright (c) 1998, 2000, 2017 The NetBSD Foundation, Inc.
@@ -64,7 +64,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.119 2019/04/06 03:06:24 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.120 2019/05/15 13:49:10 christos Exp $");
 
 #include "opt_ddb.h"
 #include "opt_kgdb.h"
@@ -751,10 +751,10 @@
        struct lwp *l = curlwp;
        struct proc *p = l->l_proc;
 
-       printf("pid %d.%d (%s): signal %d (trap %#lx) "
+       printf("pid %d.%d (%s): signal %d code=%d (trap %#lx) "
            "@rip %#lx addr %#lx error=%d\n",
-           p->p_pid, l->l_lid, p->p_comm, ksi->ksi_signo, tf->tf_trapno,
-           tf->tf_rip, rcr2(), e);
+           p->p_pid, l->l_lid, p->p_comm, ksi->ksi_signo, ksi->ksi_code,
+           tf->tf_trapno, tf->tf_rip, rcr2(), e);
        frame_dump(tf, lwp_getpcb(l));
 }
 #endif



Home | Main Index | Thread Index | Old Index