this fixes -d in our command line tools (eg. samba-tool)
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Thu Nov 4 01:48:15 UTC 2010 on sn-devel-104
switch (state.logtype) {
case DEBUG_STDOUT:
+ case DEBUG_DEFAULT_STDOUT:
state.fd = 1;
break;
case DEBUG_STDERR:
+ case DEBUG_DEFAULT_STDERR:
state.fd = 2;
break;
* for example. This makes it easy to override for debug to stderr on
* the command line, as the smb.conf cannot reset it back to
* file-based logging */
-enum debug_logtype {DEBUG_DEFAULT_STDERR = 0, DEBUG_STDOUT = 1, DEBUG_FILE = 2, DEBUG_STDERR = 3};
+enum debug_logtype {DEBUG_DEFAULT_STDOUT = 0,
+ DEBUG_DEFAULT_STDERR,
+ DEBUG_STDOUT,
+ DEBUG_FILE,
+ DEBUG_STDERR};
/**
the backend for debug messages. Note that the DEBUG() macro has already