From: Stefan Metzmacher Date: Fri, 9 Jan 2009 12:10:07 +0000 (+0100) Subject: s4:debug: make setup_logging() a bit more compatible with samba3 X-Git-Tag: samba-4.0.0alpha6~176 X-Git-Url: http://git.samba.org/samba.git/?p=ira%2Fwip.git;a=commitdiff_plain;h=49a6d757b4d944cd22c91b2838beb83f04fbe1e9 s4:debug: make setup_logging() a bit more compatible with samba3 In samba3 the 2nd argument is bool interactive. E.g ndrdump uses true there which used to map to DEBUG_FILE in samba4, it maps to DEBUG_STDOUT now, which is better. In the end end samba3 should also use the samba4 version of setup_logging() metze --- diff --git a/lib/util/debug.h b/lib/util/debug.h index 7518a64e196..85e64fb8616 100644 --- a/lib/util/debug.h +++ b/lib/util/debug.h @@ -75,7 +75,7 @@ extern int DEBUGLEVEL; #define DEBUGTAB(n) do_debug_tab(n) /** Possible destinations for the debug log */ -enum debug_logtype {DEBUG_STDOUT = 0, DEBUG_FILE = 1, DEBUG_STDERR = 2}; +enum debug_logtype {DEBUG_FILE = 0, DEBUG_STDOUT = 1, DEBUG_STDERR = 2}; /** the backend for debug messages. Note that the DEBUG() macro has already