]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbd: Modernize DEBUGs
authorVolker Lendecke <vl@samba.org>
Wed, 4 Dec 2024 11:42:43 +0000 (12:42 +0100)
committerVolker Lendecke <vl@samba.org>
Tue, 17 Dec 2024 12:30:31 +0000 (12:30 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Pavel Filipenský <pfilipensky@samba.org>
source3/smbd/smb1_trans2.c
source3/smbd/smb2_trans2.c

index 8b29e2f888ff6297f42eeb9e46a19d114ca15005..40e667ecaa3facd72532c016dce07bb64cbb7dac 100644 (file)
@@ -3408,10 +3408,10 @@ static NTSTATUS smb_posix_open(connection_struct *conn,
                create_options |= FILE_DIRECTORY_FILE;
        }
 
-       DEBUG(10,("smb_posix_open: file %s, smb_posix_flags = %u, mode 0%o\n",
-               smb_fname_str_dbg(smb_fname),
-               (unsigned int)wire_open_mode,
-               (unsigned int)unixmode ));
+       DBG_DEBUG("file %s, smb_posix_flags = %" PRIu32 ", mode 0%o\n",
+                 smb_fname_str_dbg(smb_fname),
+                 wire_open_mode,
+                 (unsigned int)unixmode);
 
         status = SMB_VFS_CREATE_FILE(
                conn,                                   /* conn */
@@ -4021,10 +4021,10 @@ static NTSTATUS smb_set_file_unix_basic(connection_struct *conn,
                        return NT_STATUS_OBJECT_NAME_NOT_FOUND;
                }
 
-               DEBUG(10,("smb_set_file_unix_basic: SMB_SET_FILE_UNIX_BASIC "
+               DBG_DEBUG("SMB_SET_FILE_UNIX_BASIC "
                          "setting mode 0%o for file %s\n",
                          (unsigned int)unixmode,
-                         smb_fname_str_dbg(smb_fname)));
+                         smb_fname_str_dbg(smb_fname));
                ret = SMB_VFS_FCHMOD(fsp, unixmode);
                if (ret != 0) {
                        return map_nt_error_from_unix(errno);
index b6f2e23cd8d15b88c8e361a476722de5fe67c74f..2c2bc7e79703167f4c88ed14d520ed6f57515f1f 100644 (file)
@@ -5054,9 +5054,9 @@ static NTSTATUS smb_set_file_end_of_file_info(connection_struct *conn,
 
        size = IVAL(pdata,0);
        size |= (((off_t)IVAL(pdata,4)) << 32);
-       DEBUG(10,("smb_set_file_end_of_file_info: Set end of file info for "
-                 "file %s to %.0f\n", smb_fname_str_dbg(smb_fname),
-                 (double)size));
+       DBG_DEBUG("Set end of file info for file %s to %ju\n",
+                 smb_fname_str_dbg(smb_fname),
+                 (uintmax_t)size);
 
        return smb_set_file_size(conn, req,
                                fsp,