-/* $OpenBSD: trap.c,v 1.49 2016/02/27 13:08:06 mpi Exp $ */
+/* $OpenBSD: trap.c,v 1.50 2016/08/20 19:22:05 stefan Exp $ */
/* $NetBSD: trap.c,v 1.2 2003/05/04 23:51:56 fvdl Exp $ */
/*-
case T_STKFLT|T_USER:
case T_NMI|T_USER:
#ifdef TRAP_SIGDEBUG
- printf("pid %d (%s): BUS at rip %lx addr %lx\n",
+ printf("pid %d (%s): BUS at rip %llx addr %llx\n",
p->p_pid, p->p_comm, frame->tf_rip, rcr2());
frame_dump(frame);
#endif
goto out;
case T_FPOPFLT|T_USER: /* coprocessor operand fault */
#ifdef TRAP_SIGDEBUG
- printf("pid %d (%s): ILL at rip %lx addr %lx\n",
+ printf("pid %d (%s): ILL at rip %llx addr %llx\n",
p->p_pid, p->p_comm, frame->tf_rip, rcr2());
frame_dump(frame);
#endif
trapsignal(p, SIGKILL, T_PAGEFLT, SEGV_MAPERR, sv);
} else {
#ifdef TRAP_SIGDEBUG
- printf("pid %d (%s): SEGV at rip %lx addr %lx\n",
+ printf("pid %d (%s): SEGV at rip %llx addr %lx\n",
p->p_pid, p->p_comm, frame->tf_rip, fa);
frame_dump(frame);
#endif