- Fix panic() message and a couple style nits that snuck in from the

recent diagnostics commit (rev. 1.84).
This commit is contained in:
Andrew R. Reiter 2002-02-28 08:28:14 +00:00
parent d330a9760f
commit 216ae18217
5 changed files with 15 additions and 15 deletions

View File

@ -298,11 +298,11 @@ trap(a0, a1, a2, entry, 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 in 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 {

View File

@ -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 {

View File

@ -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);

View File

@ -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);

View File

@ -176,11 +176,11 @@ trap(struct trapframe *tf)
sticks = td->td_kse->ke_sticks;
td->td_frame = tf;
#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 {