summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
Diffstat (limited to 'sys')
-rw-r--r--sys/mips/mips/trap.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/mips/mips/trap.c b/sys/mips/mips/trap.c
index a60701d..7254d4f 100644
--- a/sys/mips/mips/trap.c
+++ b/sys/mips/mips/trap.c
@@ -1465,15 +1465,17 @@ log_bad_page_fault(char *msg, struct trapframe *frame, int trap_type)
read_or_write = "read";
break;
default:
- read_or_write = "";
+ read_or_write = "unknown";
}
pc = frame->pc + (DELAYBRANCH(frame->cause) ? 4 : 0);
- log(LOG_ERR, "%s: pid %d tid %ld (%s), uid %d: pc %#jx got a %s fault at %#jx\n",
+ log(LOG_ERR, "%s: pid %d tid %ld (%s), uid %d: pc %#jx got a %s fault "
+ "(type %#x) at %#jx\n",
msg, p->p_pid, (long)td->td_tid, p->p_comm,
p->p_ucred ? p->p_ucred->cr_uid : -1,
(intmax_t)pc,
read_or_write,
+ trap_type,
(intmax_t)frame->badvaddr);
/* log registers in trap frame */
OpenPOWER on IntegriCloud