On 09/17/2013 08:52 AM, Ivana Hutarova Varekova wrote:
> This change is suggested by Dhaval Giani <dhaval.gi...@gmail.com>.
> Polish "usage" function of cgset tool. Remove a level of indentation.
> Use tabulators instead of spaces.
> 
> Signed-off-by: Ivana Hutarova Varekova <varek...@redhat.com>
> ---
> 
>  src/tools/cgset.c |   21 ++++++++++-----------
>  1 files changed, 10 insertions(+), 11 deletions(-)
> 
> diff --git a/src/tools/cgset.c b/src/tools/cgset.c
> index 614477e..63090b6 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 <name=value>]  <cgroup_path> ...\n"
> -                     "   or: %s --copy-from <source_cgroup_path> "
> -                         "<cgroup_path> ...\n",
> -                     program_name, program_name);
> -             printf("Set the parameters of given cgroup(s)\n");
> -             printf("  -r, --variable <name>                 "\
> -                     "Define parameter to display\n");
> -             printf("  --copy-from <source_cgroup_path>      "\
> -                     "Control group whose parameters will be copied\n");
> +             return;
>       }
> +     printf("Usage: %s [-r <name=value>] <cgroup_path> ...\n"
> +             "   or: %s --copy-from <source_cgroup_path> "\
> +             "<cgroup_path> ...\n", program_name, program_name);
> +     printf("Set the parameters of given cgroup(s)\n");
> +     printf("  -r, --variable <name>                 Define parameter "\
> +             "to display\n");

to set?             ^^^^^^^
Otherwise, Acked-By: Jan Safranek <jsafr...@redhat.com>

> +     printf("  --copy-from <source_cgroup_path>      Control group whose "\
> +             "parameters will be copied\n");
>  }
>  
>  int main(int argc, char *argv[])
> 
> 
> ------------------------------------------------------------------------------
> 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