lscgroup: unify help output
* use tabulators instead of spaces
* at first describe the functionality and then describe options
* use printf instead fprintf(stdout,..)

Signed-off-by: Ivana Hutarova Varekova <varek...@redhat.com>
---

 src/tools/lscgroup.c |   13 ++++++-------
 1 files changed, 6 insertions(+), 7 deletions(-)

diff --git a/src/tools/lscgroup.c b/src/tools/lscgroup.c
index f3ff5fa..bfb1724 100644
--- a/src/tools/lscgroup.c
+++ b/src/tools/lscgroup.c
@@ -46,13 +46,12 @@ static void usage(int status, const char *program_name)
                        program_name);
                return;
        }
-       fprintf(stdout, "Usage: %s [-h] [[-g] <controllers>:<path>] "\
-               "[...]\n", program_name);
-       fprintf(stdout, "  -g <controllers>:<path>   Control group "\
-               "to be displayed (-g is optional)\n");
-       fprintf(stdout, "  -h, --help                Display "\
-               "this help\n");
-       fprintf(stdout, "List all cgroups\n");
+       printf("Usage: %s [-h] [[-g] <controllers>:<path>] [...]\n",
+               program_name);
+       printf("List all cgroups\n");
+       printf("  -g <controllers>:<path>       Control group to be displayed "\
+               "(-g is optional)\n");
+       printf("  -h, --help                    Display this help\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

Reply via email to