Browse Source

ccanlint: print keys in output

Since test keys are used for --target=, this is useful.
Rusty Russell 15 years ago
parent
commit
2421664fb0
1 changed files with 1 additions and 1 deletions
  1. 1 1
      tools/ccanlint/ccanlint.c

+ 1 - 1
tools/ccanlint/ccanlint.c

@@ -142,7 +142,7 @@ static bool run_test(struct ccanlint *i,
 	if ((!score->pass && !quiet)
 	if ((!score->pass && !quiet)
 	    || (score->score < score->total && verbose)
 	    || (score->score < score->total && verbose)
 	    || verbose > 1) {
 	    || verbose > 1) {
-		printf("%s: %s", i->name, score->pass ? "PASS" : "FAIL");
+		printf("%s (%s): %s", i->name, i->key, score->pass ? "PASS" : "FAIL");
 		if (score->total > 1)
 		if (score->total > 1)
 			printf(" (+%u/%u)", score->score, score->total);
 			printf(" (+%u/%u)", score->score, score->total);
 		printf("\n");
 		printf("\n");