summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tools/ccanlint/ccanlint.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/ccanlint/ccanlint.c b/tools/ccanlint/ccanlint.c
index 15d131e2..1c7ee389 100644
--- a/tools/ccanlint/ccanlint.c
+++ b/tools/ccanlint/ccanlint.c
@@ -149,8 +149,10 @@ static bool run_test(struct ccanlint *i,
}
if ((!quiet && !score->pass) || verbose) {
- if (score->error)
- printf("%s", score->error);
+ if (score->error) {
+ printf("%s%s", score->error,
+ strends(score->error, "\n") ? "" : "\n");
+ }
if (!quiet && !score->pass && i->handle)
i->handle(m, score);
}