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/utils/smbtree.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'source3/utils/smbtree.c') diff --git a/source3/utils/smbtree.c b/source3/utils/smbtree.c index f27011cdea..c6d4be0e44 100644 --- a/source3/utils/smbtree.c +++ b/source3/utils/smbtree.c @@ -291,9 +291,7 @@ static bool print_tree(struct user_auth_info *user_info) setlinebuf(stdout); - dbf = x_stderr; - - setup_logging(argv[0],True); + setup_logging(argv[0], DEBUG_STDERR); auth_info = user_auth_info_init(frame); if (auth_info == NULL) { -- cgit