diff options
| author | Seigo Tanimura <tanimura@FreeBSD.org> | 2002-01-18 09:21:15 +0000 |
|---|---|---|
| committer | Seigo Tanimura <tanimura@FreeBSD.org> | 2002-01-18 09:21:15 +0000 |
| commit | 98bf25aae1cba495cecfaafb1821a7d696d4b9a1 (patch) | |
| tree | 1009e9564896385150b57b0adfc66339f5243b99 /sys | |
| parent | 8df8626ebdb61a67db991daf7ec3de4bda550d3e (diff) | |
Notes
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/kern/kern_sx.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/kern_sx.c b/sys/kern/kern_sx.c index 38136a17b4ed..dda9fe73c1c5 100644 --- a/sys/kern/kern_sx.c +++ b/sys/kern/kern_sx.c @@ -318,8 +318,8 @@ _sx_assert(struct sx *sx, int what, const char *file, int line) #else mtx_lock(sx->sx_lock); if (sx->sx_cnt <= 0 && - (what == SX_SLOCKED || sx->sx_xholder == curthread)) - printf("Lock %s not %slocked @ %s:%d", + (what == SX_SLOCKED || sx->sx_xholder != curthread)) + printf("Lock %s not %slocked @ %s:%d\n", sx->sx_object.lo_name, (what == SX_SLOCKED) ? "share " : "", file, line); mtx_unlock(sx->sx_lock); @@ -328,7 +328,7 @@ _sx_assert(struct sx *sx, int what, const char *file, int line) case SX_XLOCKED: mtx_lock(sx->sx_lock); if (sx->sx_xholder != curthread) - printf("Lock %s not exclusively locked @ %s:%d", + printf("Lock %s not exclusively locked @ %s:%d\n", sx->sx_object.lo_name, file, line); mtx_unlock(sx->sx_lock); break; |
