r24684: Be a bit less verbose
authorJelmer Vernooij <jelmer@samba.org>
Sun, 26 Aug 2007 22:12:02 +0000 (22:12 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 20:02:42 +0000 (15:02 -0500)
(This used to be commit 7a7af62dc4485d832436ed39dfba41b417ec2b10)

source4/lib/registry/ldb.c
source4/lib/registry/regf.c

index 8ee4d9f93260ce35e29fb7c7c19df7e0341e7853..8a34fa7a540f96b606a67aae09e496313fa0d2b7 100644 (file)
@@ -295,11 +295,11 @@ static WERROR ldb_open_key(TALLOC_CTX *mem_ctx, const struct hive_key *h,
        ret = ldb_search(c, ldap_path, LDB_SCOPE_BASE, "(key=*)", NULL, &res);
 
        if (ret != LDB_SUCCESS) {
-               DEBUG(0, ("Error opening key '%s': %s\n", 
+               DEBUG(3, ("Error opening key '%s': %s\n", 
                                  ldb_dn_get_linearized(ldap_path), ldb_errstring(c)));
                return WERR_FOOBAR;
        } else if (res->count == 0) {
-               DEBUG(0, ("Key '%s' not found\n", ldb_dn_get_linearized(ldap_path)));
+               DEBUG(3, ("Key '%s' not found\n", ldb_dn_get_linearized(ldap_path)));
                talloc_free(res);
                return WERR_NOT_FOUND;
        }
index 7fa71033d906b8aaa58d0f4a6a740015a13faaea..d74ffd2b4baaf7956c0643757d0d978afc1ac416 100644 (file)
@@ -1303,7 +1303,7 @@ static WERROR regf_sl_del_entry(struct regf_data *regf, uint32_t list_offset,
                        }
                }
                if (!found_offset) {
-                       DEBUG(0, ("Subkey not found\n"));
+                       DEBUG(2, ("Subkey not found\n"));
                        return WERR_NOT_FOUND;
                }
                li.key_count--;
@@ -1345,7 +1345,7 @@ static WERROR regf_sl_del_entry(struct regf_data *regf, uint32_t list_offset,
                        }
                }
                if (!found_offset) {
-                       DEBUG(0, ("Subkey not found\n"));
+                       DEBUG(2, ("Subkey not found\n"));
                        return WERR_NOT_FOUND;
                }
                lf.key_count--;
@@ -1487,7 +1487,7 @@ static WERROR regf_del_key(const struct hive_key *parent, const char *name)
        /* Find the key */
        if (!W_ERROR_IS_OK(regf_get_subkey_by_name(parent_nk, parent, name, 
                                                                           (struct hive_key **)&key))) {
-               DEBUG(0, ("Key '%s' not found\n", name));
+               DEBUG(2, ("Key '%s' not found\n", name));
                return WERR_NOT_FOUND;
        }