From: Abhishek Lekshmanan Date: Wed, 19 Jul 2017 13:22:10 +0000 (+0200) Subject: rgw_lc: avoid an extra newline while logging lifecycle X-Git-Tag: v12.1.2~141^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=85de3924d3d9d775388579357c18ecb3202239a7;p=ceph.git rgw_lc: avoid an extra newline while logging lifecycle Since `ctime_r` adds a newline we would end up getting an empty newline, use the asctime helper from rgw_common instead. Signed-off-by: Abhishek Lekshmanan --- diff --git a/src/rgw/rgw_lc.cc b/src/rgw/rgw_lc.cc index 1d91df58ce5..2990bff1e81 100644 --- a/src/rgw/rgw_lc.cc +++ b/src/rgw/rgw_lc.cc @@ -147,10 +147,10 @@ void *RGWLC::LCWorker::entry() { utime_t end = ceph_clock_now(); int secs = schedule_next_start_time(start, end); - time_t next_time = end + secs; - char buf[30]; - char *nt = ctime_r(&next_time, buf); - dout(5) << "schedule life cycle next start time: " << nt <