summaryrefslogtreecommitdiff
path: root/source3/lib/debug.c
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2009-06-29 20:12:23 +1000
committerAndrew Bartlett <abartlet@samba.org>2009-06-29 20:12:23 +1000
commit6e92505080fd6764461563e4fdf1172be1ba2963 (patch)
tree89bf7e112f34eee9c9810b4b3d1995628474915b /source3/lib/debug.c
parent0e95b807b9ff7dee9d53d7294011c6e8cd82fe0e (diff)
downloadsamba-6e92505080fd6764461563e4fdf1172be1ba2963.tar.gz
samba-6e92505080fd6764461563e4fdf1172be1ba2963.tar.bz2
samba-6e92505080fd6764461563e4fdf1172be1ba2963.zip
Fix ndrdump to use a common setup_logging() API
By adding a new common setup_logging_stdout() API, we no longer need to abuse the ABI compatability between the different setup_logging() calls in Samba3 and Samba4's DEBUG() subsystems. The revert of 49a6d757b4d944cd22c91b2838beb83f04fbe1e9 works with this to fix bug 6211. Andrew Bartlett
Diffstat (limited to 'source3/lib/debug.c')
-rw-r--r--source3/lib/debug.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/source3/lib/debug.c b/source3/lib/debug.c
index 419af61ef3..e7dcfb4fdf 100644
--- a/source3/lib/debug.c
+++ b/source3/lib/debug.c
@@ -605,6 +605,15 @@ void setup_logging(const char *pname, bool interactive)
#endif
}
+/**
+ Just run logging to stdout for this program
+*/
+_PUBLIC_ void setup_logging_stdout(void)
+{
+ setup_logging(NULL, True);
+}
+
+
/***************************************************************************
Set the logfile name.
**************************************************************************/