mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
Modernize DEBUGs
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
7e8bfe738a
commit
fca8887900
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user