Commit f9b11b0d authored by Rusty Russell's avatar Rusty Russell

ccanlint: only print 5 lines of output unless -vv

parent ca951c94
......@@ -151,6 +151,7 @@ static bool run_test(struct ccanlint *i,
if ((!quiet && !score->pass) || verbose) {
struct file_error *f;
unsigned int lines = 1;
if (score->error)
printf("%s%s\n", score->error,
......@@ -164,6 +165,10 @@ static bool run_test(struct ccanlint *i,
printf("%s:%s\n", f->file->fullname, f->error);
else
printf("%s\n", f->error);
if (verbose < 2 && ++lines > 5) {
printf("... more (use -vv to see them all)\n");
break;
}
}
if (!quiet && !score->pass && i->handle)
i->handle(m, score);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment