X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=tools%2Fccanlint%2Fccanlint.c;h=8aa9f2894c4aa83e053692c560b0bb6e74a5a6ea;hb=f9b11b0dffed4ee8e73c38fdb374ace75576e97e;hp=a5901ac318b8b00b0a160457e0f51d4370d32f4c;hpb=ca951c94fba731b878f5bb3f81bb99c397dc4e12;p=ccan-lca-2011.git diff --git a/tools/ccanlint/ccanlint.c b/tools/ccanlint/ccanlint.c index a5901ac..8aa9f28 100644 --- a/tools/ccanlint/ccanlint.c +++ b/tools/ccanlint/ccanlint.c @@ -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);