From: Daniel Mack Date: Fri, 24 Apr 2015 19:51:43 +0000 (+0200) Subject: bootchart: kill newline characters from log_error_errno() calls X-Git-Tag: v220~285 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5d236c1f420b7a717b8f40415c0e0ae7d52f3aba;p=thirdparty%2Fsystemd.git bootchart: kill newline characters from log_error_errno() calls --- diff --git a/src/bootchart/bootchart.c b/src/bootchart/bootchart.c index 65cb3226e51..45fab925987 100644 --- a/src/bootchart/bootchart.c +++ b/src/bootchart/bootchart.c @@ -488,7 +488,7 @@ int main(int argc, char *argv[]) { log_start, interval, overrun); if (r < 0) { - log_error_errno(r, "Error generating svg file: %m\n"); + log_error_errno(r, "Error generating svg file: %m"); return EXIT_FAILURE; } diff --git a/src/bootchart/svg.c b/src/bootchart/svg.c index c63fd0406e3..0132475e10a 100644 --- a/src/bootchart/svg.c +++ b/src/bootchart/svg.c @@ -157,7 +157,7 @@ static int svg_title(FILE *of, const char *build, int pscount, double log_start, r = read_one_line_file("/proc/cmdline", &cmdline); if (r < 0) { - log_error_errno(r, "Unable to read cmdline: %m\n"); + log_error_errno(r, "Unable to read cmdline: %m"); return r; } @@ -192,7 +192,7 @@ static int svg_title(FILE *of, const char *build, int pscount, double log_start, /* CPU type */ r = read_full_file("/proc/cpuinfo", &buf, NULL); if (r < 0) - return log_error_errno(r, "Unable to read cpuinfo: %m\n"); + return log_error_errno(r, "Unable to read cpuinfo: %m"); cpu = strstr(buf, "model name"); if (!cpu) {