From: Ivana Hutarova Varekova Date: Fri, 27 Sep 2013 05:17:07 +0000 (+0200) Subject: cgset: polish usage function X-Git-Tag: v0.41~26 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8e806711f2580a32bf51598ba5abfae3a5901762;p=thirdparty%2Flibcgroup.git cgset: polish usage function This change is suggested by Dhaval Giani . Polish "usage" function of cgset tool. Remove a level of indentation. Use tabulators instead of spaces. Based on Jan's comment change typo display->set in -g description Signed-off-by: Ivana Hutarova Varekova Acked-by: Dhaval Giani Acked-by: Jan Safranek --- diff --git a/src/tools/cgset.c b/src/tools/cgset.c index 614477e3..ea9f90d3 100644 --- a/src/tools/cgset.c +++ b/src/tools/cgset.c @@ -57,21 +57,20 @@ scgroup_err: static void usage(int status, const char *program_name) { - if (status != 0) + if (status != 0) { fprintf(stderr, "Wrong input parameters," " try %s --help' for more information.\n", program_name); - else { - printf("Usage: %s [-r ] ...\n" - " or: %s --copy-from " - " ...\n", - program_name, program_name); - printf("Set the parameters of given cgroup(s)\n"); - printf(" -r, --variable "\ - "Define parameter to display\n"); - printf(" --copy-from "\ - "Control group whose parameters will be copied\n"); + return; } + printf("Usage: %s [-r ] ...\n" + " or: %s --copy-from "\ + " ...\n", program_name, program_name); + printf("Set the parameters of given cgroup(s)\n"); + printf(" -r, --variable Define parameter "\ + "to set\n"); + printf(" --copy-from Control group whose "\ + "parameters will be copied\n"); } int main(int argc, char *argv[])