ccanlint: print keys in output
authorRusty Russell <rusty@rustcorp.com.au>
Fri, 7 Jan 2011 11:50:44 +0000 (22:20 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Fri, 7 Jan 2011 11:50:44 +0000 (22:20 +1030)
Since test keys are used for --target=, this is useful.

tools/ccanlint/ccanlint.c

index 7515a7c6f7af15eebe184699c3e731a7ce37c555..6bfc6d15bd1debf7ad7355da0ce3ba2181e2dde8 100644 (file)
@@ -142,7 +142,7 @@ static bool run_test(struct ccanlint *i,
        if ((!score->pass && !quiet)
            || (score->score < score->total && verbose)
            || 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)
                        printf(" (+%u/%u)", score->score, score->total);
                printf("\n");