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/torture/locktest.c | 4 +--- source3/torture/locktest2.c | 6 ++---- source3/torture/masktest.c | 4 +--- source3/torture/msgtest.c | 2 +- source3/torture/pdbtest.c | 2 +- source3/torture/smbiconv.c | 2 +- source3/torture/torture.c | 6 ++---- source3/torture/vfstest.c | 2 +- 8 files changed, 10 insertions(+), 18 deletions(-) (limited to 'source3/torture') diff --git a/source3/torture/locktest.c b/source3/torture/locktest.c index a90c2e2dfee..9c8c6965b1f 100644 --- a/source3/torture/locktest.c +++ b/source3/torture/locktest.c @@ -604,14 +604,12 @@ static void usage(void) load_case_tables(); - dbf = x_stderr; - if (argc < 3 || argv[1][0] == '-') { usage(); exit(1); } - setup_logging(argv[0],True); + setup_logging(argv[0], DEBUG_STDOUT); for (server=0;server