]> git.ipfire.org Git - thirdparty/libcgroup.git/commitdiff
cgclear: polish usage function
authorIvana Hutarova Varekova <varekova@redhat.com>
Thu, 26 Sep 2013 09:57:06 +0000 (11:57 +0200)
committerIvana Hutarova Varekova <varekova@redhat.com>
Thu, 26 Sep 2013 09:57:06 +0000 (11:57 +0200)
This change is suggested by Dhaval Giani <dhaval.giani@gmail.com>.
Polish "usage" function of cgclear tool. Remove a level of indentation.

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/cgclear.c

index 1e00560f22d4be6b42b9e08eb34702f5388c8c1b..915038a4e6f3643523ce76e415e039a6999d7ba2 100644 (file)
@@ -32,18 +32,17 @@ static void usage(int status, const char *program_name)
                fprintf(stderr, "Wrong input parameters,"
                        " try %s -h' for more information.\n",
                        program_name);
-       } else {
-               printf("Usage: %s [-h] [-l FILE] [-L DIR] [-e]\n",
-                       program_name);
-               printf("Unload the cgroup filesystem\n");
-               printf("  -h, --help                    Display this help\n");
-               printf("  -e, --empty                   Remove only empty"\
-                       " cgroups\n");
-               printf("  -l, --load=FILE               Parse and load"\
-                       "the cgroups configuration file\n");
-               printf("  -L, --load-directory=DIR      Parse and load"\
-                       "the cgroups configuration files from a directory\n");
+               return;
        }
+       printf("Usage: %s [-h] [-l FILE] [-L DIR] [-e]\n",
+               program_name);
+       printf("Unload the cgroup filesystem\n");
+       printf("  -h, --help                    Display this help\n");
+       printf("  -e, --empty                   Remove only empty cgroups\n");
+       printf("  -l, --load=FILE               Parse and load the cgroups "\
+               "configuration file\n");
+       printf("  -L, --load-directory=DIR      Parse and load the cgroups "\
+               "configuration files from a directory\n");
 }
 
 static void report_error(int error, const char *program_name)