From: Mathieu Desnoyers Date: Thu, 6 Jun 2013 17:40:53 +0000 (-0400) Subject: rcuja testpop: cleanup distribution output X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=c2149969682cbb75c9152e50d1c2f80a4c68197a;p=urcu.git rcuja testpop: cleanup distribution output Signed-off-by: Mathieu Desnoyers --- diff --git a/rcuja/testpop.c b/rcuja/testpop.c index 0315c49..3b5833e 100644 --- a/rcuja/testpop.c +++ b/rcuja/testpop.c @@ -258,6 +258,8 @@ void print_distrib(void) return; printf("Distribution:\n"); for (i = 0; i < 256; i++) { + if (!subclass_len_distrib[i]) + continue; printf("(%u, %u, %llu%%) ", i, subclass_len_distrib[i], 100 * (unsigned long long) subclass_len_distrib[i] / tot);