From 9f6445e34a57c270f013c9416c123e56261553dd Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Tue, 24 Dec 2013 16:39:37 +0100 Subject: log: log_error() and friends add a newline after each line anyway, so avoid including it in the log strings --- src/bootchart/bootchart.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/bootchart') diff --git a/src/bootchart/bootchart.c b/src/bootchart/bootchart.c index fec63721a8..27fd505929 100644 --- a/src/bootchart/bootchart.c +++ b/src/bootchart/bootchart.c @@ -261,12 +261,12 @@ static void do_journal_append(char *file) { f = open(file, O_RDONLY); if (f < 0) { - log_error("Failed to read bootchart data: %m\n"); + log_error("Failed to read bootchart data: %m"); return; } n = loop_read(f, p + 10, BOOTCHART_MAX, false); if (n < 0) { - log_error("Failed to read bootchart data: %s\n", strerror(-n)); + log_error("Failed to read bootchart data: %s", strerror(-n)); close(f); return; } -- cgit v1.2.3-54-g00ecf