X-Git-Url: https://git.liburcu.org/?a=blobdiff_plain;f=rcuja%2Ftestpop.c;h=3b5833e70a61c18839f153fd0bce48ae5d765c50;hb=c2149969682cbb75c9152e50d1c2f80a4c68197a;hp=0315c49951034c32e31fcbdb5679f6545a7f819b;hpb=9d9a813b3a2c2fcbcc14e82ab1391a42781f1f22;p=urcu.git 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);