[SCM] CTDB repository - branch master updated -
ctdb-1.0.65-15-g979e78c
Ronnie Sahlberg
sahlberg at samba.org
Tue Dec 2 03:09:40 GMT 2008
The branch, master has been updated
via 979e78cfd96d74686af6f55f726c395a75275803 (commit)
from d1057ed6de7de9f2a64d8fa012c52647e89b515b (commit)
http://gitweb.samba.org/?p=sahlberg/ctdb.git;a=shortlog;h=master
- Log -----------------------------------------------------------------
commit 979e78cfd96d74686af6f55f726c395a75275803
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date: Tue Dec 2 14:08:10 2008 +1100
print the list of valid debug level literals when an invalid debug level
is specified in 'ctdb setdebug'
-----------------------------------------------------------------------
Summary of changes:
tools/ctdb.c | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
Changeset truncated at 500 lines:
diff --git a/tools/ctdb.c b/tools/ctdb.c
index c9656fe..d6240ea 100644
--- a/tools/ctdb.c
+++ b/tools/ctdb.c
@@ -1812,7 +1812,13 @@ static int32_t get_debug_by_desc(const char *desc)
return debug_levels[i].level;
}
}
- return DEBUG_ERR;
+
+ fprintf(stderr, "Invalid debug level '%s'\nMust be one of\n", desc);
+ for (i=0;i<ARRAY_SIZE(debug_levels);i++) {
+ fprintf(stderr, " %s\n", debug_levels[i].description);
+ }
+
+ exit(10);
}
/*
--
CTDB repository
More information about the samba-cvs
mailing list