Improve debug printing in test_stack
authorThorsten Glaser <tg@mirbsd.de>
Sun, 9 Dec 2012 06:29:54 +0000 (10:29 +0400)
committerIvan Maidanski <ivmai@mail.ru>
Sun, 9 Dec 2012 06:29:54 +0000 (10:29 +0400)
* tests/test_stack.c (main): Add debug printing of exper_n, nthreads,
max_nthreads and list_length before add_elements call (if VERBOSE).

tests/test_stack.c

index f826fc7..be108d9 100644 (file)
@@ -241,6 +241,11 @@ int main(int argc, char **argv)
         long long start_time;
         list_element * le;
 
+#       ifdef VERBOSE
+          printf("Before add_elements: exper_n=%d, nthreads=%d,"
+                 " max_nthreads=%d, list_length=%d\n",
+                 exper_n, nthreads, max_nthreads, list_length);
+#       endif
         add_elements(list_length);
 #       ifdef VERBOSE
           printf("Initial list (nthreads = %d):\n", nthreads);