diff options
author | Jeremy Allison <jra@samba.org> | 2000-05-03 17:50:42 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2000-05-03 17:50:42 +0000 |
commit | f6bcf3d3243de4209b67024ca07252f17d4add24 (patch) | |
tree | 241d3618de24f30130f28d214a4d3264d455bbdb /source3/locking | |
parent | 380d02c219eb35f2d7b6585c3b7644b80c561b78 (diff) | |
download | samba-f6bcf3d3243de4209b67024ca07252f17d4add24.tar.gz samba-f6bcf3d3243de4209b67024ca07252f17d4add24.tar.bz2 samba-f6bcf3d3243de4209b67024ca07252f17d4add24.zip |
Added range info to the panic message to track down the bug with
locktest.
Jeremy.
(This used to be commit 91f038356b7efa04cf4bfa5e6afd8b144b6b4ad5)
Diffstat (limited to 'source3/locking')
-rw-r--r-- | source3/locking/posix.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/source3/locking/posix.c b/source3/locking/posix.c index df5fefdb49..c712e8c26f 100644 --- a/source3/locking/posix.c +++ b/source3/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++) */ |