Added range info to the panic message to track down the bug with
authorJeremy Allison <jra@samba.org>
Wed, 3 May 2000 17:50:42 +0000 (17:50 +0000)
committerJeremy Allison <jra@samba.org>
Wed, 3 May 2000 17:50:42 +0000 (17:50 +0000)
locktest.
Jeremy.

source/locking/posix.c

index df5fefdb496487b6945b19c769fc42e184b071bc..c712e8c26f023fe77e266b5571762156de68e70d 100644 (file)
@@ -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++) */