[systemd-devel] [PATCH] cgtop --help: default depth is 3 not 2

Maksim Melnikau maxposedon at gmail.com
Fri Mar 29 05:55:50 PDT 2013


use default depth from variable for --help

Signed-off-by: Maksim Melnikau <maxposedon at gmail.com>
---
 src/cgtop/cgtop.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/cgtop/cgtop.c b/src/cgtop/cgtop.c
index f80d51e..eebebf0 100644
--- 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) {
-- 
1.8.1.5



More information about the systemd-devel mailing list