On 09/17/2013 08:52 AM, Ivana Hutarova Varekova wrote: > cgsnapshot: unify help output > * use tabulators instead of spaces > * change formulation > * change fprintf(stdout,...) to printf() > > Signed-off-by: Ivana Hutarova Varekova <varek...@redhat.com>
Acked-By: Jan Safranek <jsafr...@redhat.com> > --- > > src/tools/cgsnapshot.c | 21 +++++++++------------ > 1 files changed, 9 insertions(+), 12 deletions(-) > > diff --git a/src/tools/cgsnapshot.c b/src/tools/cgsnapshot.c > index 659ddd5..a0599c1 100644 > --- a/src/tools/cgsnapshot.c > +++ b/src/tools/cgsnapshot.c > @@ -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"); > } > > > > ------------------------------------------------------------------------------ > LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99! > 1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint > 2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes > Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13. > http://pubads.g.doubleclick.net/gampad/clk?id=58041151&iu=/4140/ostg.clktrk > _______________________________________________ > Libcg-devel mailing list > Libcg-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/libcg-devel > ------------------------------------------------------------------------------ LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99! 1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint 2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13. http://pubads.g.doubleclick.net/gampad/clk?id=58041151&iu=/4140/ostg.clktrk _______________________________________________ Libcg-devel mailing list Libcg-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libcg-devel