On 09/17/2013 08:51 AM, Ivana Hutarova Varekova wrote: > This change is suggested by Dhaval Giani <dhaval.gi...@gmail.com>. > Polish "usage" function of cgexec tool. Remove a level of > indentation. > > Signed-off-by: Ivana Hutarova Varekova <varek...@redhat.com>
Acked-By: Jan Safranek <jsafr...@redhat.com> > --- > > src/tools/cgexec.c | 19 +++++++++---------- > 1 files changed, 9 insertions(+), 10 deletions(-) > > diff --git a/src/tools/cgexec.c b/src/tools/cgexec.c > index 30725b3..a6b8e4f 100644 > --- a/src/tools/cgexec.c > +++ b/src/tools/cgexec.c > @@ -42,20 +42,19 @@ static struct option longopts[] = { > > 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 [-h] [-g <controllers>:<path>] " > - "[--sticky] command [arguments] ...\n", > - program_name); > - printf("Run the task in given control groups\n"); > - printf(" -g <controllers>:<path> Control "\ > - "group which should be added\n"); > - printf(" --sticky cgred "\ > - "daemon does not change pidlist and children tasks\n"); > + return; > } > + printf("Usage: %s [-h] [-g <controllers>:<path>] [--sticky] "\ > + "command [arguments] ...\n", program_name); > + printf("Run the task in given control group(s)\n"); > + printf(" -g <controllers>:<path> Control group which "\ > + "should be added\n"); > + printf(" --sticky cgred daemon does not "\ > + "change pidlist and children tasks\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