From: Jeremy Allison Date: Thu, 16 Jun 2022 19:00:26 +0000 (-0700) Subject: s3: VFS: full_audit: Use correct DBG_ print messages in init_bitmap(). X-Git-Tag: tevent-0.13.0~405 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ec91a583708c57d0da28da7b70e6366153129c64;p=thirdparty%2Fsamba.git s3: VFS: full_audit: Use correct DBG_ print messages in init_bitmap(). BUG: https://bugzilla.samba.org/show_bug.cgi?id=15098 Signed-off-by: Jeremy Allison Reviewed-by: Andrew Bartlett --- diff --git a/source3/modules/vfs_full_audit.c b/source3/modules/vfs_full_audit.c index af37cf19335..167f446938b 100644 --- a/source3/modules/vfs_full_audit.c +++ b/source3/modules/vfs_full_audit.c @@ -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; }