X-Git-Url: https://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=tools%2Fccanlint%2Fccanlint.c;h=330866d15f1f9365ba336893bb7e36382ccb55fa;hp=064e40d869d6703da46270ce16e67a95488d3895;hb=39323f37b0209c24f5be4b4c7f119d6019912541;hpb=1f2fc8975204bdedcd3bd17a7410bf8f60783b0d diff --git a/tools/ccanlint/ccanlint.c b/tools/ccanlint/ccanlint.c index 064e40d8..330866d1 100644 --- a/tools/ccanlint/ccanlint.c +++ b/tools/ccanlint/ccanlint.c @@ -119,8 +119,13 @@ static bool run_test(struct ccanlint *i, result = i->check(m); if (!result) { - if (verbose) - printf(" %s: OK\n", i->name); + if (verbose) { + printf(" %s: OK", i->name); + if (i->total_score) + printf(" (+%u/%u)", + i->total_score, i->total_score); + printf("\n"); + } if (i->total_score) { *score += i->total_score; *total_score += i->total_score; @@ -141,6 +146,10 @@ static bool run_test(struct ccanlint *i, *total_score += i->total_score; *score += this_score; + if (verbose) { + printf(" %s: FAIL (+%u/%u)\n", + i->name, this_score, i->total_score); + } if (!quiet) { printf("%s\n", i->describe(m, result));