[sheepdog] [PATCH] sheep: update log level help
morita.kazutaka at gmail.com
morita.kazutaka at gmail.com
Tue Jan 14 18:17:04 CET 2014
From: MORITA Kazutaka <morita.kazutaka at lab.ntt.co.jp>
We cannot specify a number as a log level.
Signed-off-by: MORITA Kazutaka <morita.kazutaka at lab.ntt.co.jp>
---
sheep/sheep.c | 36 ++++++++++++++++++------------------
1 file changed, 18 insertions(+), 18 deletions(-)
diff --git a/sheep/sheep.c b/sheep/sheep.c
index 4cbc64d..a550f22 100644
--- a/sheep/sheep.c
+++ b/sheep/sheep.c
@@ -92,15 +92,15 @@ static const char log_help[] =
"\tformat=: log format type\n\n"
"if dir is not specified, use metastore directory\n\n"
"Available log levels:\n"
-" # Level Description\n"
-" 0 emerg system has failed and is unusable\n"
-" 1 alert action must be taken immediately\n"
-" 2 crit critical conditions\n"
-" 3 err error conditions\n"
-" 4 warning warning conditions\n"
-" 5 notice normal but significant conditions\n"
-" 6 info informational notices\n"
-" 7 debug debugging messages\n"
+" Level Description\n"
+" emerg system has failed and is unusable\n"
+" alert action must be taken immediately\n"
+" crit critical conditions\n"
+" err error conditions\n"
+" warning warning conditions\n"
+" notice normal but significant conditions\n"
+" info informational notices\n"
+" debug debugging messages\n"
"default log level is info\n\n"
"Available log format:\n"
" FormatType Description\n"
@@ -177,15 +177,15 @@ out:
static void sdlog_help(void)
{
printf("Available log levels:\n"
- " # Level Description\n"
- " 0 SDOG_EMERG system has failed and is unusable\n"
- " 1 SDOG_ALERT action must be taken immediately\n"
- " 2 SDOG_CRIT critical conditions\n"
- " 3 SDOG_ERR error conditions\n"
- " 4 SDOG_WARNING warning conditions\n"
- " 5 SDOG_NOTICE normal but significant conditions\n"
- " 6 SDOG_INFO informational notices\n"
- " 7 SDOG_DEBUG debugging messages\n");
+ " Level Description\n"
+ " emerg system has failed and is unusable\n"
+ " alert action must be taken immediately\n"
+ " crit critical conditions\n"
+ " err error conditions\n"
+ " warning warning conditions\n"
+ " notice normal but significant conditions\n"
+ " info informational notices\n"
+ " debug debugging messages\n");
}
static int create_pidfile(const char *filename)
--
1.7.10.4
More information about the sheepdog
mailing list