chiark / gitweb /
nspawn: create empty /etc/resolv.conf if necessary
[elogind.git] / src / bootchart / bootchart.c
index 3350ea1d89dbf50f53863ee5c9e37170c5c521ef..002f3df8b62059dc92aacccf04a8289d980c5acd 100644 (file)
@@ -245,7 +245,7 @@ static void do_journal_append(char *file)
         struct iovec iovec[5];
         int r, f, j = 0;
         ssize_t n;
-        char _cleanup_free_ *bootchart_file = NULL, *bootchart_message = NULL,
+        _cleanup_free_ char *bootchart_file = NULL, *bootchart_message = NULL,
                 *p = NULL;
 
         bootchart_file = strappend("BOOTCHART_FILE=", file);
@@ -268,7 +268,7 @@ static void do_journal_append(char *file)
 
         f = open(file, O_RDONLY);
         if (f < 0) {
-                log_error("Failed to read bootchart data: %s\n", strerror(-errno));
+                log_error("Failed to read bootchart data: %m\n");
                 return;
         }
         n = loop_read(f, p + 10, BOOTCHART_MAX, false);