On 09/17/2013 08:50 AM, Ivana Hutarova Varekova wrote:
> This change is suggested by Dhaval Giani <dhaval.gi...@gmail.com>.
> Polish "usage" function of cgclear tool. Remove a level of indentation.
> 
> Signed-off-by: Ivana Hutarova Varekova <varek...@redhat.com>

Acked-By: Jan Safranek <jsafr...@redhat.com>

> ---
> 
>  src/tools/cgclear.c |   21 ++++++++++-----------
>  1 files changed, 10 insertions(+), 11 deletions(-)
> 
> diff --git a/src/tools/cgclear.c b/src/tools/cgclear.c
> index 1e00560..915038a 100644
> --- a/src/tools/cgclear.c
> +++ b/src/tools/cgclear.c
> @@ -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)
> 
> 
> ------------------------------------------------------------------------------
> 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

Reply via email to