diff options
author | Martin Schwenke <martin@meltin.net> | 2014-09-24 17:12:56 +1000 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2014-10-06 12:34:33 +0200 |
commit | 3105737c4b38b3cb4f9408cfc82cf8b49bc3fb2e (patch) | |
tree | 2df6b80e0b718f9dcbbdf9428652aa363855c8ae /ctdb/common/cmdline.c | |
parent | 1c8c0be6f97f74169c0b46be4df2245aa631186a (diff) | |
download | samba-3105737c4b38b3cb4f9408cfc82cf8b49bc3fb2e.tar.gz |
ctdb-logging: Change LogLevel to DEBUGLEVEL
For compatibility with current Samba debug.[ch].
Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Volker Lendecke <vl@samba.org>
Diffstat (limited to 'ctdb/common/cmdline.c')
-rw-r--r-- | ctdb/common/cmdline.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ctdb/common/cmdline.c b/ctdb/common/cmdline.c index ebe68e49772..ab2b45e9143 100644 --- a/ctdb/common/cmdline.c +++ b/ctdb/common/cmdline.c @@ -97,9 +97,9 @@ struct ctdb_context *ctdb_cmdline_init(struct event_context *ev) /* Set the debug level */ if (isalpha(ctdb_cmdline.debuglevel[0]) || ctdb_cmdline.debuglevel[0] == '-') { - LogLevel = get_debug_by_desc(ctdb_cmdline.debuglevel); + DEBUGLEVEL = get_debug_by_desc(ctdb_cmdline.debuglevel); } else { - LogLevel = strtol(ctdb_cmdline.debuglevel, NULL, 0); + DEBUGLEVEL = strtol(ctdb_cmdline.debuglevel, NULL, 0); } /* set up the tree to store server ids */ @@ -148,9 +148,9 @@ struct ctdb_context *ctdb_cmdline_client(struct tevent_context *ev, /* Set the debug level */ if (isalpha(ctdb_cmdline.debuglevel[0]) || ctdb_cmdline.debuglevel[0] == '-') { - LogLevel = get_debug_by_desc(ctdb_cmdline.debuglevel); + DEBUGLEVEL = get_debug_by_desc(ctdb_cmdline.debuglevel); } else { - LogLevel = strtol(ctdb_cmdline.debuglevel, NULL, 0); + DEBUGLEVEL = strtol(ctdb_cmdline.debuglevel, NULL, 0); } ret = ctdb_socket_connect(ctdb); |