]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
bootchart: kill newline characters from log_error_errno() calls
authorDaniel Mack <daniel@zonque.org>
Fri, 24 Apr 2015 19:51:43 +0000 (21:51 +0200)
committerDaniel Mack <daniel@zonque.org>
Fri, 24 Apr 2015 19:51:43 +0000 (21:51 +0200)
src/bootchart/bootchart.c
src/bootchart/svg.c

index 65cb3226e515a63931386e5ae76c72cd89cbd2b3..45fab925987665772ea78e7d4383a6888840c222 100644 (file)
@@ -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;
         }
 
index c63fd0406e3154ecd091260b37d44c352a5da87c..0132475e10a55aedf6e08ae5e3737452b94062eb 100644 (file)
@@ -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) {