summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Maidanski <ivmai@mail.ru>2022-02-15 10:03:36 +0300
committerIvan Maidanski <ivmai@mail.ru>2022-02-15 18:04:19 +0300
commiteef6823ee95efcc9a58f46d62ff49b84de434e7e (patch)
tree128e0bcc5599eba61f7e99e0ee097db0c9a0e4fa
parentd29c0910d85c5ca14c2f49a08ddc9149d23a6a88 (diff)
downloadlibatomic_ops-eef6823ee95efcc9a58f46d62ff49b84de434e7e.tar.gz
Fix code indentation in main of test_stack.c
* tests/test_stack.c (main): Adjust indentation for ifdef VERBOSE_STACK and for "for" statement (for statistic output).
-rw-r--r--tests/test_stack.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/tests/test_stack.c b/tests/test_stack.c
index 09225ff..155d695 100644
--- a/tests/test_stack.c
+++ b/tests/test_stack.c
@@ -332,12 +332,12 @@ int main(int argc, char **argv)
}
}
times[nthreads][exper_n] = get_msecs() - start_time;
- # ifdef VERBOSE_STACK
+# ifdef VERBOSE_STACK
printf("nthreads=%d, time_ms=%lu\n",
nthreads, times[nthreads][exper_n]);
printf("final list (should be reordered initial list):\n");
print_list();
- # endif
+# endif
/* Ensure that no element is lost or duplicated. */
check_list(list_length);
/* And, free the entire list. */
@@ -345,8 +345,9 @@ int main(int argc, char **argv)
free(le);
/* Retry with larger n values, probably retry the experiment again. */
}
- /* Output the performance statistic finally. */
- for (nthreads = 1; nthreads <= max_nthreads; ++nthreads)
+
+ /* Output the performance statistic finally. */
+ for (nthreads = 1; nthreads <= max_nthreads; ++nthreads)
{
# ifndef NO_TIMES
unsigned long sum = 0;