From: Mathieu Desnoyers Date: Fri, 12 Jun 2009 18:28:18 +0000 (-0400) Subject: Align the summary result X-Git-Tag: v0.1~161 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=cda3c71d5a0aca557840ae7744fa1c23ba43944e;p=userspace-rcu.git Align the summary result Signed-off-by: Mathieu Desnoyers --- diff --git a/test_mutex.c b/test_mutex.c index 97059ba..54d83cc 100644 --- a/test_mutex.c +++ b/test_mutex.c @@ -156,7 +156,7 @@ void *thr_reader(void *data) } tot_nr_reads[tidx] = nr_reads; - printf("thread_end %s, thread id : %lx, tid %lu\n", + printf_verbose("thread_end %s, thread id : %lx, tid %lu\n", "reader", pthread_self(), (unsigned long)gettid()); return ((void*)1); @@ -341,8 +341,9 @@ int main(int argc, char **argv) printf_verbose("total number of reads : %llu, writes %llu\n", tot_reads, tot_writes); - printf("SUMMARY %s testdur %lu nr_readers %u rdur %lu nr_writers %u " - "wdelay %u nr_reads %llu nr_writes %llu nr_ops %llu\n", + printf("SUMMARY %-15s testdur %4lu nr_readers %3u rdur %6lu " + "nr_writers %3u " + "wdelay %4u nr_reads %12llu nr_writes %12llu nr_ops %12llu\n", argv[0], duration, nr_readers, rduration, nr_writers, wdelay, tot_reads, tot_writes, tot_reads + tot_writes); diff --git a/test_perthreadlock.c b/test_perthreadlock.c index 3d1d9ec..e142975 100644 --- a/test_perthreadlock.c +++ b/test_perthreadlock.c @@ -160,7 +160,7 @@ void *thr_reader(void *data) } tot_nr_reads[tidx] = nr_reads; - printf("thread_end %s, thread id : %lx, tid %lu\n", + printf_verbose("thread_end %s, thread id : %lx, tid %lu\n", "reader", pthread_self(), (unsigned long)gettid()); return ((void*)1); @@ -351,8 +351,9 @@ int main(int argc, char **argv) printf_verbose("total number of reads : %llu, writes %llu\n", tot_reads, tot_writes); - printf("SUMMARY %s testdur %lu nr_readers %u rdur %lu nr_writers %u " - "wdelay %u nr_reads %llu nr_writes %llu nr_ops %llu\n", + printf("SUMMARY %-15s testdur %4lu nr_readers %3u rdur %6lu " + "nr_writers %3u " + "wdelay %4u nr_reads %12llu nr_writes %12llu nr_ops %12llu\n", argv[0], duration, nr_readers, rduration, nr_writers, wdelay, tot_reads, tot_writes, tot_reads + tot_writes); diff --git a/test_qsbr.c b/test_qsbr.c index b65d9ca..07ab6c7 100644 --- a/test_qsbr.c +++ b/test_qsbr.c @@ -387,8 +387,9 @@ int main(int argc, char **argv) printf_verbose("total number of reads : %llu, writes %llu\n", tot_reads, tot_writes); - printf("SUMMARY %s testdur %lu nr_readers %u rdur %lu nr_writers %u " - "wdelay %u nr_reads %llu nr_writes %llu nr_ops %llu\n", + printf("SUMMARY %-15s testdur %4lu nr_readers %3u rdur %6lu " + "nr_writers %3u " + "wdelay %4u nr_reads %12llu nr_writes %12llu nr_ops %12llu\n", argv[0], duration, nr_readers, rduration, nr_writers, wdelay, tot_reads, tot_writes, tot_reads + tot_writes); diff --git a/test_rwlock.c b/test_rwlock.c index 1b4a56e..e779763 100644 --- a/test_rwlock.c +++ b/test_rwlock.c @@ -335,8 +335,9 @@ int main(int argc, char **argv) printf_verbose("total number of reads : %llu, writes %llu\n", tot_reads, tot_writes); - printf("SUMMARY %s testdur %lu nr_readers %u rdur %lu nr_writers %u " - "wdelay %u nr_reads %llu nr_writes %llu nr_ops %llu\n", + printf("SUMMARY %-15s testdur %4lu nr_readers %3u rdur %6lu " + "nr_writers %3u " + "wdelay %4u nr_reads %12llu nr_writes %12llu nr_ops %12llu\n", argv[0], duration, nr_readers, rduration, nr_writers, wdelay, tot_reads, tot_writes, tot_reads + tot_writes); diff --git a/test_urcu.c b/test_urcu.c index 9e3a093..626f238 100644 --- a/test_urcu.c +++ b/test_urcu.c @@ -388,8 +388,9 @@ int main(int argc, char **argv) printf_verbose("total number of reads : %llu, writes %llu\n", tot_reads, tot_writes); - printf("SUMMARY %s testdur %lu nr_readers %u rdur %lu nr_writers %u " - "wdelay %u nr_reads %llu nr_writes %llu nr_ops %llu\n", + printf("SUMMARY %-15s testdur %4lu nr_readers %3u rdur %6lu " + "nr_writers %3u " + "wdelay %4u nr_reads %12llu nr_writes %12llu nr_ops %12llu\n", argv[0], duration, nr_readers, rduration, nr_writers, wdelay, tot_reads, tot_writes, tot_reads + tot_writes);