]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
debug: Fix default log levels
authorVolker Lendecke <vl@samba.org>
Wed, 3 Jun 2015 14:34:31 +0000 (14:34 +0000)
committerChristof Schmitt <cs@samba.org>
Wed, 3 Jun 2015 23:01:34 +0000 (01:01 +0200)
According to man smb.conf, the log level with the "logging=" parameter is
separated by @, not :.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Christof Schmitt <cs@samba.org>
Autobuild-User(master): Christof Schmitt <cs@samba.org>
Autobuild-Date(master): Thu Jun  4 01:01:35 CEST 2015 on sn-devel-104

lib/util/debug.c

index 81d0cf6a848d4b1dfc9d3b938d81d80b766be16d..44338c5121ff51ab3ac2d80fb709ef7283000f31 100644 (file)
@@ -783,10 +783,10 @@ void debug_set_settings(struct debug_settings *settings,
        if (len == 0) {
                if (syslog_only) {
                        snprintf(fake_param, sizeof(fake_param),
-                                "syslog:%d", syslog_level - 1);
+                                "syslog@%d", syslog_level - 1);
                } else {
                        snprintf(fake_param, sizeof(fake_param),
-                                "syslog:%d file:%d", syslog_level -1,
+                                "syslog@%d file@%d", syslog_level -1,
                                 MAX_DEBUG_LEVEL);
                }