From: Volker Lendecke Date: Wed, 4 Dec 2024 11:42:43 +0000 (+0100) Subject: smbd: Modernize DEBUGs X-Git-Tag: tdb-1.4.13~311 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=06cca7bf020dab38bff6d1354eaf466ef2526b21;p=thirdparty%2Fsamba.git smbd: Modernize DEBUGs Signed-off-by: Volker Lendecke Reviewed-by: Pavel Filipenský --- diff --git a/source3/smbd/smb1_trans2.c b/source3/smbd/smb1_trans2.c index 8b29e2f888f..40e667ecaa3 100644 --- a/source3/smbd/smb1_trans2.c +++ b/source3/smbd/smb1_trans2.c @@ -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); diff --git a/source3/smbd/smb2_trans2.c b/source3/smbd/smb2_trans2.c index b6f2e23cd8d..2c2bc7e7970 100644 --- a/source3/smbd/smb2_trans2.c +++ b/source3/smbd/smb2_trans2.c @@ -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,