]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3: VFS: full_audit: Use correct DBG_ print messages in init_bitmap().
authorJeremy Allison <jra@samba.org>
Thu, 16 Jun 2022 19:00:26 +0000 (12:00 -0700)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 17 Jun 2022 01:28:29 +0000 (01:28 +0000)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=15098

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source3/modules/vfs_full_audit.c

index af37cf1933592ede0f5dd752b701ed5240dc0690..167f446938b89da1f8904e6384397353c8ceed22 100644 (file)
@@ -515,13 +515,13 @@ static struct bitmap *init_bitmap(TALLOC_CTX *mem_ctx, const char **ops)
        struct bitmap *bm;
 
        if (ops == NULL) {
+               DBG_ERR("init_bitmap, ops list is empty (logic error)\n");
                return NULL;
        }
 
        bm = bitmap_talloc(mem_ctx, SMB_VFS_OP_LAST);
        if (bm == NULL) {
-               DEBUG(0, ("Could not alloc bitmap -- "
-                         "defaulting to logging everything\n"));
+               DBG_ERR("Could not alloc bitmap\n");
                return NULL;
        }
 
@@ -563,8 +563,7 @@ static struct bitmap *init_bitmap(TALLOC_CTX *mem_ctx, const char **ops)
                        }
                }
                if (i == SMB_VFS_OP_LAST) {
-                       DEBUG(0, ("Could not find opname %s, logging all\n",
-                                 *ops));
+                       DBG_ERR("Could not find opname %s\n", *ops);
                        TALLOC_FREE(bm);
                        return NULL;
                }