]> git.ipfire.org Git - thirdparty/libcgroup.git/commitdiff
cgsnapshot: unify help output
authorIvana Hutarova Varekova <varekova@redhat.com>
Fri, 27 Sep 2013 05:17:52 +0000 (07:17 +0200)
committerIvana Hutarova Varekova <varekova@redhat.com>
Fri, 27 Sep 2013 05:17:52 +0000 (07:17 +0200)
cgsnapshot: unify help output
* use tabulators instead of spaces
* change formulation
* change fprintf(stdout,...) to printf()

Signed-off-by: Ivana Hutarova Varekova <varekova@redhat.com>
Acked-by: Dhaval Giani <dhaval.giani@gmail.com>
Acked-by: Jan Safranek <jsafrane@redhat.com>
src/tools/cgsnapshot.c

index 659ddd54e6e59be9970f2af6383a54ca07e7dcca..a0599c11f6a8f6b93e119ea882a9aceb8f6ab9cd 100644 (file)
@@ -61,21 +61,18 @@ static void usage(int status, const char *program_name)
                        program_name);
                return;
        }
-       fprintf(stdout, "Usage: %s [-h] [-s] [-b FILE] "\
-               "[-w FILE] [-f FILE] "\
+       printf("Usage: %s [-h] [-s] [-b FILE] [-w FILE] [-f FILE] "\
                "[controller] [...]\n", program_name);
-       fprintf(stdout, "Generate the configuration file from "\
-               "the given controllers of control groups\n");
-       fprintf(stdout, "  -b, --blacklist=FILE  Set the blacklist"\
+       printf("Generate the configuration file for given controllers\n");
+       printf("  -b, --blacklist=FILE          Set the blacklist"\
                " configuration file (default %s)\n", BLACKLIST_CONF);
-       fprintf(stdout, "  -f, --file=FILE       Redirect the output"\
+       printf("  -f, --file=FILE               Redirect the output"\
                " to output_file\n");
-       fprintf(stdout, "  -h, --help            Display this help\n");
-       fprintf(stdout, "  -s, --silent          Ignore all "\
-               "warnings\n");
-       fprintf(stdout, "  -t, --strict          Don't show the "\
-               "variables which are not on the whitelist\n");
-       fprintf(stdout, "  -w, --whitelist=FILE  Set the whitelist"\
+       printf("  -h, --help                    Display this help\n");
+       printf("  -s, --silent                  Ignore all warnings\n");
+       printf("  -t, --strict                  Don't show variables "\
+               "which are not on the whitelist\n");
+       printf("  -w, --whitelist=FILE          Set the whitelist"\
                " configuration file (don't used by default)\n");
 }