From 9da4ace1d9789d300ab298bc34694c44b2062f30 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Fri, 29 Oct 2010 14:19:32 +1100 Subject: s3-debug Impove setup_logging() to specify logging to stderr This change improves the setup_logging() API so that callers which wish to set up logging to stderr can simply ask for it, rather than directly modify the dbf global variable. Andrew Bartlett --- source3/param/test_lp_load.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'source3/param') diff --git a/source3/param/test_lp_load.c b/source3/param/test_lp_load.c index 53ac23b99c..94715b5a59 100644 --- a/source3/param/test_lp_load.c +++ b/source3/param/test_lp_load.c @@ -49,7 +49,7 @@ int main(int argc, const char **argv) while(poptGetNextOpt(pc) != -1); - setup_logging(poptGetArg(pc), True); + setup_logging(poptGetArg(pc), DEBUG_STDERR); if (poptPeekArg(pc)) { config_file = poptGetArg(pc); @@ -61,7 +61,6 @@ int main(int argc, const char **argv) count = atoi(count_str); } - dbf = x_stderr; /* Don't let the debuglevel be changed by smb.conf. */ AllowDebugChange = False; -- cgit