projects
/
ccan
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
83cfe17
)
ccanlint: minor print formatting cleanup.
author
Rusty Russell
<rusty@rustcorp.com.au>
Sun, 14 Nov 2010 11:48:12 +0000
(22:18 +1030)
committer
Rusty Russell
<rusty@rustcorp.com.au>
Sun, 14 Nov 2010 11:48:12 +0000
(22:18 +1030)
tools/ccanlint/ccanlint.c
patch
|
blob
|
history
diff --git
a/tools/ccanlint/ccanlint.c
b/tools/ccanlint/ccanlint.c
index 44d828bb78cb132ac9a3c5998f1949874dd93d6f..8f36c2aa521f2d3c2132c508e367a1376fbbe2fa 100644
(file)
--- a/
tools/ccanlint/ccanlint.c
+++ b/
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)