From 557754e3788df3dc316127dde1b44e61e51e75d4 Mon Sep 17 00:00:00 2001 From: Milan Zamazal Date: Wed, 11 Mar 2026 17:21:46 +0100 Subject: [PATCH] init: Don't use newlines in perror messages perror(MESSAGE) formats the output like MESSAGE: ERROR DESCRIPTION\n Which means MESSAGE shouldn't end with a newline. Let's remove the newlines. Signed-off-by: Milan Zamazal --- init/init.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/init/init.c b/init/init.c index 855b3778c..6fde93a78 100644 --- a/init/init.c +++ b/init/init.c @@ -849,7 +849,7 @@ void clock_worker() sockfd = socket(AF_VSOCK, SOCK_DGRAM, 0); if (sockfd < 0) { - perror("Couldn't create timesync socket\n"); + perror("Couldn't create timesync socket"); return; } @@ -869,7 +869,7 @@ void clock_worker() while (1) { n = recv(sockfd, buf, BUFSIZE, 0); if (n < 0) { - perror("Error in timesync recv\n"); + perror("Error in timesync recv"); return; } else if (n != 8) { printf("Ignoring bogus timesync packet\n");