Skip to contentSkip to conversation

hwclock: Remove newline from 'date' debug output

PATCH In review JWP 1 participant 1 message Oct 24, 2014 Util-Linux package

lore
Share & tools
lore

JWP

author
#0 lore raw

PATCH 1/5 hwclock: Remove newline from 'date' debug output

The date command includes a newline.

---
 sys-utils/hwclock.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
sys-utils/hwclock.c +1 -1
index 008b20a..ced1314 100644
@@ -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"