chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8333c77
)
cgtop --help: default depth is 3 not 2
author
Maksim Melnikau
<maxposedon@gmail.com>
Fri, 29 Mar 2013 12:55:50 +0000
(15:55 +0300)
committer
Lennart Poettering
<lennart@poettering.net>
Fri, 29 Mar 2013 14:42:47 +0000
(15:42 +0100)
use default depth from variable for --help
src/cgtop/cgtop.c
patch
|
blob
|
history
diff --git
a/src/cgtop/cgtop.c
b/src/cgtop/cgtop.c
index f80d51efed60cfe31e56e8ed3b752188c83b5466..eebebf033370c35c651dfe5cfbd07f0a219eb873 100644
(file)
--- a/
src/cgtop/cgtop.c
+++ b/
src/cgtop/cgtop.c
@@
-522,8
+522,8
@@
static void help(void) {
" -d --delay=DELAY Specify delay\n"
" -n --iterations=N Run for N iterations before exiting\n"
" -b --batch Run in batch mode, accepting no input\n"
- " --depth=DEPTH Maximum traversal depth (default:
2
)\n",
- program_invocation_short_name);
+ " --depth=DEPTH Maximum traversal depth (default:
%d
)\n",
+ program_invocation_short_name
, arg_depth
);
}
static void version(void) {