* [PATCH 1/5] hwclock: Remove newline from 'date' debug output
@ 2014-10-24 2:45 JWP
0 siblings, 0 replies; only message in thread
From: JWP @ 2014-10-24 2:45 UTC (permalink / raw)
To: Karel Zak; +Cc: util-linux
The date command includes a newline.
Signed-off-by: J William Piggott <elseifthen@gmx.com>
---
sys-utils/hwclock.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sys-utils/hwclock.c b/sys-utils/hwclock.c
index 008b20a..ced1314 100644
--- a/sys-utils/hwclock.c
+++ b/sys-utils/hwclock.c
@@ -767,7 +767,7 @@ static int interpret_date_string(const char *date_opt, time_t * const time_p)
if (!fgets(date_resp, sizeof(date_resp), date_child_fp))
date_resp[0] = '\0'; /* in case fgets fails */
if (debug)
- printf(_("response from date command = %s\n"), date_resp);
+ printf(_("response from date command = %s"), date_resp);
if (strncmp(date_resp, magic, sizeof(magic) - 1) != 0) {
warnx(_("The date command issued by %s returned "
"unexpected results.\n"
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2014-10-24 2:45 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-24 2:45 [PATCH 1/5] hwclock: Remove newline from 'date' debug output JWP
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.