From: Ivana Hutarova Varekova Date: Fri, 27 Sep 2013 05:17:19 +0000 (+0200) Subject: cgsnapshot: polish usage function X-Git-Tag: v0.41~25 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ddef80605fd7d2cced9bea6e73202e3189ade77c;p=thirdparty%2Flibcgroup.git cgsnapshot: polish usage function This change is suggested by Dhaval Giani . Polish "usage" function of cgsnapshot tool. Remove a level of indentation. Signed-off-by: Ivana Hutarova Varekova Acked-by: Dhaval Giani Acked-by: Jan Safranek --- diff --git a/src/tools/cgsnapshot.c b/src/tools/cgsnapshot.c index dd49c9cd..659ddd54 100644 --- a/src/tools/cgsnapshot.c +++ b/src/tools/cgsnapshot.c @@ -59,24 +59,24 @@ static void usage(int status, const char *program_name) fprintf(stderr, "Wrong input parameters," " try %s -h' for more information.\n", program_name); - } else { - fprintf(stdout, "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"\ - " configuration file (default %s)\n", BLACKLIST_CONF); - fprintf(stdout, " -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"\ - " configuration file (don't used by default)\n"); + return; } + fprintf(stdout, "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"\ + " configuration file (default %s)\n", BLACKLIST_CONF); + fprintf(stdout, " -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"\ + " configuration file (don't used by default)\n"); } /* cache values from blacklist file to the list structure */