hwclock: Remove newline from 'date' debug output
PATCH 1/5 hwclock: Remove newline from 'date' debug output
The date command includes a newline.
Signed-off-by J William Piggott <[email protected]>
--- sys-utils/hwclock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
sys-utils/hwclock.c +1 -1
@@ -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"