From 0aaddb66e91852f0b3c032d2fff8616a358e0654 Mon Sep 17 00:00:00 2001 From: arr Date: Thu, 28 Feb 2002 08:28:14 +0000 Subject: - Fix panic() message and a couple style nits that snuck in from the recent diagnostics commit (rev. 1.84). --- sys/ia64/ia64/trap.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sys/ia64') diff --git a/sys/ia64/ia64/trap.c b/sys/ia64/ia64/trap.c index 141ae9b..bf5c2cd 100644 --- a/sys/ia64/ia64/trap.c +++ b/sys/ia64/ia64/trap.c @@ -324,11 +324,11 @@ trap(int vector, int imm, struct trapframe *framep) sticks = td->td_kse->ke_sticks; td->td_frame = framep; #ifdef DIAGNOSTIC /* see the comment in ast() */ - if (td->td_ucred) - panic("trap:thread got a cred while userspace"); + if (td->td_ucred != NULL) + panic("trap(): thread got a ucred while in userspace"); td->td_ucred = td->td_ucred_cache; td->td_ucred_cache = NULL; -#endif /* DIAGNOSTIC */ +#endif if (td->td_ucred != p->p_ucred) cred_update_thread(td); } else { -- cgit v1.1