]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
vfs_ceph_new: common prefix to debug-log messages
authorShachar Sharon <ssharon@redhat.com>
Tue, 16 Jul 2024 11:33:16 +0000 (14:33 +0300)
committerGünther Deschner <gd@samba.org>
Mon, 29 Jul 2024 15:58:15 +0000 (15:58 +0000)
Keep logging consistent: add "[CEPH] " prefix to DBG_DEBUG log messages
where missing.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=15686

Signed-off-by: Shachar Sharon <ssharon@redhat.com>
Reviewed-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Anoop C S <anoopcs@samba.org>
Autobuild-User(master): Günther Deschner <gd@samba.org>
Autobuild-Date(master): Mon Jul 29 15:58:15 UTC 2024 on atb-devel-224

source3/modules/vfs_ceph_new.c

index d1c9862a1dc90e962227d6d6bf9c898ba9066b7a..3c82730f87cc3440aeaa3dcc073fbeabb307c22b 100644 (file)
@@ -120,7 +120,7 @@ static int cephmount_cache_add(const char *cookie,
        entry->mount = mount;
        entry->count = 1;
 
-       DBG_DEBUG("adding mount cache entry for %s\n", entry->cookie);
+       DBG_DEBUG("[CEPH] adding mount cache entry for %s\n", entry->cookie);
        DLIST_ADD(cephmount_cached, entry);
 
        *out_entry = entry;
@@ -134,7 +134,7 @@ static struct cephmount_cached *cephmount_cache_update(const char *cookie)
        for (entry = cephmount_cached; entry; entry = entry->next) {
                if (strcmp(entry->cookie, cookie) == 0) {
                        entry->count++;
-                       DBG_DEBUG("updated mount cache: count is [%"
+                       DBG_DEBUG("[CEPH] updated mount cache: count is [%"
                                  PRIu32 "]\n", entry->count);
                        return entry;
                }
@@ -147,12 +147,12 @@ static struct cephmount_cached *cephmount_cache_update(const char *cookie)
 static int cephmount_cache_remove(struct cephmount_cached *entry)
 {
        if (--entry->count) {
-               DBG_DEBUG("updated mount cache: count is [%" PRIu32 "]\n",
-                         entry->count);
+               DBG_DEBUG("[CEPH] updated mount cache: count is [%"
+                         PRIu32 "]\n", entry->count);
                return entry->count;
        }
 
-       DBG_DEBUG("removing mount cache entry for %s\n", entry->cookie);
+       DBG_DEBUG("[CEPH] removing mount cache entry for %s\n", entry->cookie);
        DLIST_REMOVE(cephmount_cached, entry);
        talloc_free(entry);
        return 0;
@@ -321,7 +321,7 @@ static void vfs_ceph_disconnect(struct vfs_handle_struct *handle)
 
        ret = cephmount_cache_remove(handle->data);
        if (ret > 0) {
-               DBG_DEBUG("mount cache entry still in use\n");
+               DBG_DEBUG("[CEPH] mount cache entry still in use\n");
                return;
        }