diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2002-08-29 16:35:33 +0000 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2002-08-29 16:35:33 +0000 |
commit | fc29385029bf000dc70d23154e39970ee76e4d30 (patch) | |
tree | de212bf3fa26d037b7ff23f6dc795b873bf4be3c | |
parent | 60446ad6033f6f9179ac2566f670d04ff8b662c2 (diff) | |
download | samba-fc29385029bf000dc70d23154e39970ee76e4d30.tar.gz samba-fc29385029bf000dc70d23154e39970ee76e4d30.tar.xz samba-fc29385029bf000dc70d23154e39970ee76e4d30.zip |
Make debuglevel a string for use with debug classes
-rw-r--r-- | source/lib/popt_common.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/lib/popt_common.c b/source/lib/popt_common.c index a3d6af4fbc1..bbc17cb704d 100644 --- a/source/lib/popt_common.c +++ b/source/lib/popt_common.c @@ -33,7 +33,7 @@ static void debug_callback(poptContext con, switch(opt->val) { case 'd': if (arg) { - DEBUGLEVEL = atoi(arg); + debug_parse_levels(arg); AllowDebugChange = False; } @@ -43,7 +43,7 @@ static void debug_callback(poptContext con, struct poptOption popt_common_debug[] = { { NULL, 0, POPT_ARG_CALLBACK, debug_callback }, - { "debuglevel", 'd', POPT_ARG_INT, NULL, 'd', "Set debug level", + { "debuglevel", 'd', POPT_ARG_STRING, NULL, 'd', "Set debug level", "DEBUGLEVEL" }, { 0 } }; |