]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbd: Modernize DEBUGs
authorVolker Lendecke <vl@samba.org>
Sun, 7 Jul 2024 18:09:46 +0000 (20:09 +0200)
committerJeremy Allison <jra@samba.org>
Tue, 6 Aug 2024 16:29:33 +0000 (16:29 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/smbd/smb1_trans2.c

index e31bdf02fe8297bc6ba09174d47620ec006df32d..fe1359d2c3c4e8c493509ce68e2e2d220dbda7b8 100644 (file)
@@ -3890,9 +3890,11 @@ static NTSTATUS smb_unix_mknod(connection_struct *conn,
                        return NT_STATUS_INVALID_PARAMETER;
        }
 
-       DEBUG(10,("smb_unix_mknod: SMB_SET_FILE_UNIX_BASIC doing mknod dev "
-                 "%.0f mode 0%o for file %s\n", (double)dev,
-                 (unsigned int)unixmode, smb_fname_str_dbg(smb_fname)));
+       DBG_DEBUG("SMB_SET_FILE_UNIX_BASIC doing mknod dev "
+                 "%ju mode 0%o for file %s\n",
+                 (uintmax_t)dev,
+                 (unsigned int)unixmode,
+                 smb_fname_str_dbg(smb_fname));
 
        status = SMB_VFS_PARENT_PATHNAME(dirfsp->conn,
                                         talloc_tos(),
@@ -3993,11 +3995,13 @@ static NTSTATUS smb_set_file_unix_basic(connection_struct *conn,
                return status;
        }
 
-       DEBUG(10,("smb_set_file_unix_basic: SMB_SET_FILE_UNIX_BASIC: name = "
+       DBG_DEBUG("SMB_SET_FILE_UNIX_BASIC: name = "
                  "%s size = %.0f, uid = %u, gid = %u, raw perms = 0%o\n",
-                 smb_fname_str_dbg(smb_fname), (double)size,
-                 (unsigned int)set_owner, (unsigned int)set_grp,
-                 (int)raw_unixmode));
+                 smb_fname_str_dbg(smb_fname),
+                 (double)size,
+                 (unsigned int)set_owner,
+                 (unsigned int)set_grp,
+                 (int)raw_unixmode);
 
        sbuf = smb_fname->st;
 
@@ -4060,10 +4064,10 @@ static NTSTATUS smb_set_file_unix_basic(connection_struct *conn,
            (sbuf.st_ex_uid != set_owner)) {
                int ret;
 
-               DEBUG(10,("smb_set_file_unix_basic: SMB_SET_FILE_UNIX_BASIC "
+               DBG_DEBUG("SMB_SET_FILE_UNIX_BASIC "
                          "changing owner %u for path %s\n",
                          (unsigned int)set_owner,
-                         smb_fname_str_dbg(smb_fname)));
+                         smb_fname_str_dbg(smb_fname));
 
                if (fsp &&
                    !fsp->fsp_flags.is_pathref &&
@@ -4093,10 +4097,10 @@ static NTSTATUS smb_set_file_unix_basic(connection_struct *conn,
            (sbuf.st_ex_gid != set_grp)) {
                int ret;
 
-               DEBUG(10,("smb_set_file_unix_basic: SMB_SET_FILE_UNIX_BASIC "
+               DBG_DEBUG("SMB_SET_FILE_UNIX_BASIC "
                          "changing group %u for file %s\n",
                          (unsigned int)set_grp,
-                         smb_fname_str_dbg(smb_fname)));
+                         smb_fname_str_dbg(smb_fname));
                if (fsp &&
                    !fsp->fsp_flags.is_pathref &&
                    fsp_get_io_fd(fsp) != -1)