From: Joseph Sutton Date: Mon, 7 Aug 2023 04:43:37 +0000 (+1200) Subject: s3:modules: Remove redundant newlines in logging messages X-Git-Tag: tevent-0.16.0~1145 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fa24c5de8400be98436da5c1b57f302cff83cbb8;p=thirdparty%2Fsamba.git s3:modules: Remove redundant newlines in logging messages ctime() and time_to_asc() each add a trailing newline of their own. Signed-off-by: Joseph Sutton Reviewed-by: Andrew Bartlett --- diff --git a/source3/modules/vfs_fruit.c b/source3/modules/vfs_fruit.c index 53afdc9103d..60bfecd8d35 100644 --- a/source3/modules/vfs_fruit.c +++ b/source3/modules/vfs_fruit.c @@ -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); diff --git a/source3/modules/vfs_unityed_media.c b/source3/modules/vfs_unityed_media.c index 8da7316ec4f..241fbc192e7 100644 --- a/source3/modules/vfs_unityed_media.c +++ b/source3/modules/vfs_unityed_media.c @@ -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; }