s4:debug: make setup_logging() a bit more compatible with samba3
authorStefan Metzmacher <metze@samba.org>
Fri, 9 Jan 2009 12:10:07 +0000 (13:10 +0100)
committerStefan Metzmacher <metze@samba.org>
Fri, 9 Jan 2009 12:10:07 +0000 (13:10 +0100)
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

lib/util/debug.h

index 7518a64e19613ae8fa809781dbcea20fa788f508..85e64fb8616b8cded7d8a15cfeed8e273e0dd4b0 100644 (file)
@@ -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