Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
ccan
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
mirror
ccan
Commits
f9b11b0d
Commit
f9b11b0d
authored
Nov 14, 2010
by
Rusty Russell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ccanlint: only print 5 lines of output unless -vv
parent
ca951c94
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
tools/ccanlint/ccanlint.c
tools/ccanlint/ccanlint.c
+5
-0
No files found.
tools/ccanlint/ccanlint.c
View file @
f9b11b0d
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment