diff options
| author | John Baldwin <jhb@FreeBSD.org> | 2003-03-04 21:03:05 +0000 |
|---|---|---|
| committer | John Baldwin <jhb@FreeBSD.org> | 2003-03-04 21:03:05 +0000 |
| commit | 263067951a1029407b1168b41d4f5757228d22dc (patch) | |
| tree | d32954415444ccb8c42b0a457f6f0e6e15a0d64e /sys/alpha | |
| parent | 9b4982bfed075878b9cdea54bdd3c33af7c2cebc (diff) | |
Notes
Diffstat (limited to 'sys/alpha')
| -rw-r--r-- | sys/alpha/alpha/trap.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/sys/alpha/alpha/trap.c b/sys/alpha/alpha/trap.c index 718f67736b1a..d4df2344e83e 100644 --- a/sys/alpha/alpha/trap.c +++ b/sys/alpha/alpha/trap.c @@ -783,12 +783,8 @@ syscall(code, framep) #ifdef DIAGNOSTIC cred_free_thread(td); #endif -#ifdef WITNESS - if (witness_list(td)) { - panic("system call %s returning with mutex(s) held\n", - syscallnames[code]); - } -#endif + WITNESS_WARN(WARN_PANIC, NULL, "System call %s returning", + syscallnames[code]); mtx_assert(&sched_lock, MA_NOTOWNED); mtx_assert(&Giant, MA_NOTOWNED); } |
