]> git.ozlabs.org Git - ccan/commitdiff
ccanlint: minor print formatting cleanup.
authorRusty Russell <rusty@rustcorp.com.au>
Sun, 14 Nov 2010 11:48:12 +0000 (22:18 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Sun, 14 Nov 2010 11:48:12 +0000 (22:18 +1030)
tools/ccanlint/ccanlint.c

index 44d828bb78cb132ac9a3c5998f1949874dd93d6f..8f36c2aa521f2d3c2132c508e367a1376fbbe2fa 100644 (file)
@@ -153,7 +153,8 @@ static bool run_test(struct ccanlint *i,
                struct file_error *f;
 
                if (score->error)
-                       printf("%s:\n", score->error);
+                       printf("%s%s\n", score->error,
+                              list_empty(&score->per_file_errors) ? "" : ":");
 
                list_for_each(&score->per_file_errors, f, list) {
                        if (f->line)