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);
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);