ctdb-logging: Rework debug level parsing
authorMartin Schwenke <martin@meltin.net>
Fri, 8 Aug 2014 03:36:00 +0000 (13:36 +1000)
committerAmitay Isaacs <amitay@samba.org>
Tue, 28 Oct 2014 04:42:04 +0000 (05:42 +0100)
commita22c8ca05618a63d6923fcf7dc567d1cd6119009
tree9b9ec1166c1eb34170e67eba218b316e5a94c57c
parentd9d572a23cf527780caae9d7ff143376e9057f6a
ctdb-logging: Rework debug level parsing

Put declarations into ctdb_logging.h, factor out some common code,
clean up #includes.

Remove the check so see if the 1st character of the debug level is
'-'.  This is wrong, since it is trying to check for a negative
numeric debug level (which is no longer supported) and would need to
be handled in the else anyway.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
ctdb/common/cmdline.c
ctdb/common/ctdb_logging.c
ctdb/include/ctdb_client.h
ctdb/include/ctdb_logging.h
ctdb/tools/ctdb.c