From 6246dceb77bd95ed6aee45b877150b5d312ad539 Mon Sep 17 00:00:00 2001 From: mrg Date: Thu, 7 Jun 2001 15:31:16 +0000 Subject: [PATCH] print p_pid & p_comm for alignment errors. --- sys/arch/sparc64/sparc64/trap.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/arch/sparc64/sparc64/trap.c b/sys/arch/sparc64/sparc64/trap.c index 8e2cd15803b8..6e86972575ec 100644 --- a/sys/arch/sparc64/sparc64/trap.c +++ b/sys/arch/sparc64/sparc64/trap.c @@ -1,4 +1,4 @@ -/* $NetBSD: trap.c,v 1.66 2001/06/06 21:06:52 mrg Exp $ */ +/* $NetBSD: trap.c,v 1.67 2001/06/07 15:31:16 mrg Exp $ */ /* * Copyright (c) 1996 @@ -766,8 +766,8 @@ badtrap: } #define fmt64(x) (u_int)((x)>>32), (u_int)((x)) - printf("Alignment error: dsfsr=%08x:%08x dsfar=%x:%x isfsr=%08x:%08x pc=%lx\n", - fmt64(dsfsr), fmt64(dsfar), fmt64(isfsr), pc); + printf("Alignment error: pid=%d comm=%s dsfsr=%08x:%08x dsfar=%x:%x isfsr=%08x:%08x pc=%lx\n", + p->p_pid, p->p_comm, fmt64(dsfsr), fmt64(dsfar), fmt64(isfsr), pc); } #if defined(DDB) && defined(DEBUG)