mirror of
https://github.com/systemd/systemd.git
synced 2024-11-04 13:51:24 +03:00
bootchart: Fix errno usage.
This commit is contained in:
parent
b454b11220
commit
9e6d4c613d
@ -268,7 +268,7 @@ static void do_journal_append(char *file)
|
|||||||
|
|
||||||
f = open(file, O_RDONLY);
|
f = open(file, O_RDONLY);
|
||||||
if (f < 0) {
|
if (f < 0) {
|
||||||
log_error("Failed to read bootchart data: %s\n", strerror(-errno));
|
log_error("Failed to read bootchart data: %m\n");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
n = loop_read(f, p + 10, BOOTCHART_MAX, false);
|
n = loop_read(f, p + 10, BOOTCHART_MAX, false);
|
||||||
|
Loading…
Reference in New Issue
Block a user