summaryrefslogtreecommitdiffstats
path: root/sys/amd64
diff options
context:
space:
mode:
authorarr <arr@FreeBSD.org>2002-02-28 08:13:55 +0000
committerarr <arr@FreeBSD.org>2002-02-28 08:13:55 +0000
commit8cb475ee0d3c10ff04d00511e37e2799800ba3a1 (patch)
tree4dc88a5dc2533cf022938769f19595b4e96becea /sys/amd64
parent6e4c469d2f2d29581eced91d1f8b5e0dc752a969 (diff)
downloadFreeBSD-src-8cb475ee0d3c10ff04d00511e37e2799800ba3a1.zip
FreeBSD-src-8cb475ee0d3c10ff04d00511e37e2799800ba3a1.tar.gz
- trap -> trap() in panic() string.
- Translate the message into some sort of understandable english. - Fix a couple near-by style nits. Submitted by: bde
Diffstat (limited to 'sys/amd64')
-rw-r--r--sys/amd64/amd64/trap.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/amd64/amd64/trap.c b/sys/amd64/amd64/trap.c
index 7752b59..b1561dc 100644
--- a/sys/amd64/amd64/trap.c
+++ b/sys/amd64/amd64/trap.c
@@ -256,11 +256,11 @@ trap(frame)
sticks = td->td_kse->ke_sticks;
td->td_frame = &frame;
#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);
OpenPOWER on IntegriCloud