diff options
author | Ivan Maidanski <ivmai@mail.ru> | 2022-02-15 10:03:36 +0300 |
---|---|---|
committer | Ivan Maidanski <ivmai@mail.ru> | 2022-02-15 18:04:19 +0300 |
commit | eef6823ee95efcc9a58f46d62ff49b84de434e7e (patch) | |
tree | 128e0bcc5599eba61f7e99e0ee097db0c9a0e4fa | |
parent | d29c0910d85c5ca14c2f49a08ddc9149d23a6a88 (diff) | |
download | libatomic_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.c | 9 |
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; |