diff options
author | arr <arr@FreeBSD.org> | 2002-02-28 08:13:55 +0000 |
---|---|---|
committer | arr <arr@FreeBSD.org> | 2002-02-28 08:13:55 +0000 |
commit | 8cb475ee0d3c10ff04d00511e37e2799800ba3a1 (patch) | |
tree | 4dc88a5dc2533cf022938769f19595b4e96becea /sys/amd64 | |
parent | 6e4c469d2f2d29581eced91d1f8b5e0dc752a969 (diff) | |
download | FreeBSD-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.c | 6 |
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); |