s3:modules: Remove redundant newlines in logging messages
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Mon, 7 Aug 2023 04:43:37 +0000 (16:43 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 8 Aug 2023 04:39:38 +0000 (04:39 +0000)
ctime() and time_to_asc() each add a trailing newline of their own.

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source3/modules/vfs_fruit.c
source3/modules/vfs_unityed_media.c

index 53afdc9103db711b0a6ae169462c24ca6430a8eb..60bfecd8d35e2741309bd7b99f31c6dd1532122a 100644 (file)
@@ -4067,7 +4067,7 @@ static int fruit_fntimes(vfs_handle_struct *handle,
                return SMB_VFS_NEXT_FNTIMES(handle, fsp, ft);
        }
 
-       DBG_DEBUG("set btime for %s to %s\n", fsp_str_dbg(fsp),
+       DBG_DEBUG("set btime for %s to %s", fsp_str_dbg(fsp),
                  time_to_asc(convert_timespec_to_time_t(ft->create_time)));
 
        ad = ad_fget(talloc_tos(), handle, fsp, ADOUBLE_META);
index 8da7316ec4f81f31f9bd8ee8bdd20ffe0fd2c7a6..241fbc192e79c84815d266d2b4ee3b2807127625 100644 (file)
@@ -1109,9 +1109,9 @@ static int um_fstat(vfs_handle_struct *handle,
        *sbuf = fsp->fsp_name->st;
 
 out:
-       DEBUG(10, ("Leaving with fsp->fsp_name->st.st_ex_mtime %s\n",
+       DEBUG(10, ("Leaving with fsp->fsp_name->st.st_ex_mtime %s",
                   fsp->fsp_name != NULL ?
-                  ctime(&(fsp->fsp_name->st.st_ex_mtime.tv_sec)) : "0"));
+                  ctime(&(fsp->fsp_name->st.st_ex_mtime.tv_sec)) : "0\n"));
        return status;
 }