summaryrefslogtreecommitdiffstats
path: root/source/locking/posix.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2000-05-03 17:50:42 +0000
committerJeremy Allison <jra@samba.org>2000-05-03 17:50:42 +0000
commit91f038356b7efa04cf4bfa5e6afd8b144b6b4ad5 (patch)
treeefc7dc414563ff8bf869a7482601e65f086cbed7 /source/locking/posix.c
parenta0a3931c6e5824121bf4a8d075ef24b9b70e8aa1 (diff)
downloadsamba-91f038356b7efa04cf4bfa5e6afd8b144b6b4ad5.tar.gz
samba-91f038356b7efa04cf4bfa5e6afd8b144b6b4ad5.tar.xz
samba-91f038356b7efa04cf4bfa5e6afd8b144b6b4ad5.zip
Added range info to the panic message to track down the bug with
locktest. Jeremy.
Diffstat (limited to 'source/locking/posix.c')
-rw-r--r--source/locking/posix.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/source/locking/posix.c b/source/locking/posix.c
index df5fefdb496..c712e8c26f0 100644
--- a/source/locking/posix.c
+++ b/source/locking/posix.c
@@ -1093,8 +1093,12 @@ new: start=%.0f,size=%.0f\n", (double)ul_curr->start, (double)ul_curr->size,
* This logic case should never happen. Ensure this is the
* case by forcing an abort.... Remove in production.
*/
+ pstring msg;
- smb_panic("logic flaw in cases...\n");
+ slprintf(msg, sizeof(msg)-1, "logic flaw in cases: ul_curr: start = %.0f, size = %.0f : \
+lock: start = %.0f, size = %.0f\n", (double)ul_curr->start, (double)ul_curr->size, (double)lock->start, (double)lock->size );
+
+ smb_panic(msg);
}
} /* end for ( ul_curr = ulhead; ul_curr;) */
} /* end for (i=0; i<num_locks && ul_head; i++) */