S3: Dumb down debug spew in perfcount module code
authortodd stecher <todd.stecher@gmail.com>
Wed, 18 Feb 2009 08:02:51 +0000 (00:02 -0800)
committerTim Prouty <tprouty@samba.org>
Thu, 19 Feb 2009 08:01:41 +0000 (00:01 -0800)
source3/smbd/perfcount.c

index a0ba0a5f8e753dc72e89ed340486e4a58682e828..2c3871d404a4c2ec6bf19e49a7c86f6e91280240 100644 (file)
@@ -78,7 +78,7 @@ NTSTATUS smb_register_perfcounter(int interface_version, const char *name,
        }
 
        if (smb_perfcount_find_module(name)) {
-               DEBUG(0,("Perfcount Module %s already loaded!\n", name));
+               DEBUG(3,("Perfcount Module %s already loaded!\n", name));
                return NT_STATUS_OK;
        }
 
@@ -87,7 +87,7 @@ NTSTATUS smb_register_perfcounter(int interface_version, const char *name,
        entry->handlers = (struct smb_perfcount_handlers*) handlers;
 
        DLIST_ADD(modules, entry);
-       DEBUG(0, ("Successfully added perfcounter module '%s'\n", name));
+       DEBUG(3, ("Successfully added perfcounter module '%s'\n", name));
        return NT_STATUS_OK;
 }
 
@@ -105,7 +105,7 @@ static bool smb_load_perfcount_module(const char *name)
        DEBUG(3, ("Initialising perfcounter module [%s]\n", name));
 
        if (g_smb_perfcount_handlers) {
-               DEBUG(0,("Only 1 perfcount handler may be registered in "
+               DEBUG(3,("Only 1 perfcount handler may be registered in "
                        "smb.conf\n"));
                return true;
        }
@@ -146,7 +146,7 @@ static bool smb_load_perfcount_module(const char *name)
           (NT_STATUS_IS_OK(smb_probe_module("perfcount", module_path)) &&
                (entry = smb_perfcount_find_module(module_name)))) {
 
-               DEBUG(0,("Successfully loaded perfcounter module [%s] \n", name));
+               DEBUG(3,("Successfully loaded perfcounter module [%s] \n", name));
        } else {
                DEBUG(0,("Can't find a perfcounter module [%s]\n",name));
                goto fail;