diff options
author | arr <arr@FreeBSD.org> | 2002-02-28 08:28:14 +0000 |
---|---|---|
committer | arr <arr@FreeBSD.org> | 2002-02-28 08:28:14 +0000 |
commit | 0aaddb66e91852f0b3c032d2fff8616a358e0654 (patch) | |
tree | ba2c1bb4172bc32f5630796b7360e7aab73eab8b /sys/powerpc | |
parent | 8cb475ee0d3c10ff04d00511e37e2799800ba3a1 (diff) | |
download | FreeBSD-src-0aaddb66e91852f0b3c032d2fff8616a358e0654.zip FreeBSD-src-0aaddb66e91852f0b3c032d2fff8616a358e0654.tar.gz |
- Fix panic() message and a couple style nits that snuck in from the
recent diagnostics commit (rev. 1.84).
Diffstat (limited to 'sys/powerpc')
-rw-r--r-- | sys/powerpc/aim/trap.c | 6 | ||||
-rw-r--r-- | sys/powerpc/powerpc/trap.c | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/sys/powerpc/aim/trap.c b/sys/powerpc/aim/trap.c index 5a08c63..64cbf75 100644 --- a/sys/powerpc/aim/trap.c +++ b/sys/powerpc/aim/trap.c @@ -227,11 +227,11 @@ trap(struct trapframe *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); diff --git a/sys/powerpc/powerpc/trap.c b/sys/powerpc/powerpc/trap.c index 5a08c63..64cbf75 100644 --- a/sys/powerpc/powerpc/trap.c +++ b/sys/powerpc/powerpc/trap.c @@ -227,11 +227,11 @@ trap(struct trapframe *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); |