Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
iproute2
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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
iproute2
Commits
d7e0809e
Commit
d7e0809e
authored
Jun 09, 2004
by
osdl.org!shemminger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Switch to single fprintf for output
(Logical change 1.18)
parent
b7bdf69d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
14 deletions
+18
-14
misc/ifstat.c
misc/ifstat.c
+18
-14
No files found.
misc/ifstat.c
View file @
d7e0809e
...
...
@@ -544,21 +544,26 @@ int verify_forging(int fd)
return
-
1
;
}
static
void
usage
(
void
)
__attribute__
((
noreturn
));
static
void
usage
(
void
)
{
printf
(
"Usage: ifstat [OPTION] [ PATTERN [ PATTERN ] ]
\n
"
);
printf
(
" -h, --help this message
\n
"
);
printf
(
" -a, --ignore ignore history
\n
"
);
printf
(
" -d, --scan=SECS sample every statistics every SECS
\n
"
);
printf
(
" -e, --errors show errors
\n
"
);
printf
(
" -n, --nooutput do history only
\n
"
);
printf
(
" -r, --reset reset history
\n
"
);
printf
(
" -s, --noupdate don;t update history
\n
"
);
printf
(
" -t, --interval=SECS report average over the last SECS
\n
"
);
printf
(
" -V, --version output version information
\n
"
);
printf
(
" -z, --zeros show entries with zero activity
\n
"
);
printf
(
" -e, --errors show errors
\n
"
);
printf
(
" -z, --zeros show entries with zero activity
\n
"
);
fprintf
(
stderr
,
"Usage: ifstat [OPTION] [ PATTERN [ PATTERN ] ]
\n
"
" -h, --help this message
\n
"
" -a, --ignore ignore history
\n
"
" -d, --scan=SECS sample every statistics every SECS
\n
"
" -e, --errors show errors
\n
"
" -n, --nooutput do history only
\n
"
" -r, --reset reset history
\n
"
" -s, --noupdate don;t update history
\n
"
" -t, --interval=SECS report average over the last SECS
\n
"
" -V, --version output version information
\n
"
" -z, --zeros show entries with zero activity
\n
"
" -e, --errors show errors
\n
"
" -z, --zeros show entries with zero activity
\n
"
);
exit
(
-
1
);
}
static
const
struct
option
longopts
[]
=
{
...
...
@@ -628,7 +633,6 @@ int main(int argc, char *argv[])
case
'?'
:
default:
usage
();
exit
(
1
);
}
}
...
...
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