]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
Modernize DEBUGs
authorVolker Lendecke <vl@samba.org>
Mon, 9 Dec 2024 06:55:45 +0000 (07:55 +0100)
committerVolker Lendecke <vl@samba.org>
Wed, 18 Dec 2024 08:25:34 +0000 (08:25 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/lib/util_ea.c
source3/modules/vfs_streams_depot.c

index dd48e77e6f13312d141d1887b18a86a3cba5e874..92761f29c8552d7f450c8e5bd07ee5f9eeb0ef69 100644 (file)
@@ -53,8 +53,7 @@ struct ea_list *read_ea_list_entry(TALLOC_CTX *ctx, const char *pdata, size_t da
                return NULL;
        }
        if (!pull_ascii_talloc(ctx, &eal->ea.name, pdata + 4, &converted_size)) {
-               DEBUG(0,("read_ea_list_entry: pull_ascii_talloc failed: %s\n",
-                       strerror(errno)));
+               DBG_ERR("pull_ascii_talloc failed: %s\n", strerror(errno));
        }
        if (!eal->ea.name) {
                return NULL;
@@ -76,7 +75,7 @@ struct ea_list *read_ea_list_entry(TALLOC_CTX *ctx, const char *pdata, size_t da
                *pbytes_used = 4 + namelen + 1 + val_len;
        }
 
-       DEBUG(10,("read_ea_list_entry: read ea name %s\n", eal->ea.name));
+       DBG_DEBUG("read ea name %s\n", eal->ea.name);
        dump_data(10, eal->ea.value.data, eal->ea.value.length);
 
        return eal;
index 566d34996c1fa830edfb1eb1affdb9feb7893a06..1cd703ca60e2ad3fb33b9258e27817beaf1b229c 100644 (file)
@@ -277,9 +277,9 @@ static char *stream_dir(vfs_handle_struct *handle,
                                           "delete_lost", false);
 
                if (delete_lost) {
-                       DEBUG(3, ("Someone has recreated a file under an "
-                             "existing inode. Removing: %s\n",
-                             smb_fname_hash->base_name));
+                       DBG_NOTICE("Someone has recreated a file under an "
+                                  "existing inode. Removing: %s\n",
+                                  smb_fname_hash->base_name);
                        recursive_rmdir(talloc_tos(), handle->conn,
                                        smb_fname_hash);
                        SMB_VFS_NEXT_UNLINKAT(handle,
@@ -289,10 +289,10 @@ static char *stream_dir(vfs_handle_struct *handle,
                } else {
                        newname = talloc_asprintf(talloc_tos(), "lost-%lu",
                                                  random());
-                       DEBUG(3, ("Someone has recreated a file under an "
-                             "existing inode. Renaming: %s to: %s\n",
-                             smb_fname_hash->base_name,
-                             newname));
+                       DBG_NOTICE("Someone has recreated a file under an "
+                                  "existing inode. Renaming: %s to: %s\n",
+                                  smb_fname_hash->base_name,
+                                  newname);
                        if (newname == NULL) {
                                errno = ENOMEM;
                                goto fail;