Browse Source

ccanlint: minor print formatting cleanup.

Rusty Russell 15 years ago
parent
commit
eaca6b486a
1 changed files with 2 additions and 1 deletions
  1. 2 1
      tools/ccanlint/ccanlint.c

+ 2 - 1
tools/ccanlint/ccanlint.c

@@ -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)