"[Unit]\n"
"JobTimeoutSec=0\n"); /* the binary handles timeouts anyway */
if (r < 0) {
- log_error("Failed to write device drop-in: %s", strerror(-r));
+ log_error_errno(r, "Failed to write device drop-in: %m");
return r;
}
r = udev_enumerate_scan_devices(e);
if (r < 0) {
- log_error("Failed to enumerate partitions on %s: %s", node, strerror(-r));
+ log_error_errno(r, "Failed to enumerate partitions on %s: %m", node);
return r;
}
log_debug("EFI loader partition unknown, exiting.");
return 0;
} else if (r < 0) {
- log_error("Failed to read ESP partition UUID: %s", strerror(-r));
+ log_error_errno(r, "Failed to read ESP partition UUID: %m");
return r;
}
r = get_block_device("/", &devno);
if (r < 0) {
- log_error("Failed to determine block device of root file system: %s", strerror(-r));
+ log_error_errno(r, "Failed to determine block device of root file system: %m");
return r;
} else if (r == 0) {
log_debug("Root file system not on a (single) block device.");
r = parse_proc_cmdline(parse_proc_cmdline_item);
if (r < 0)
- log_warning("Failed to parse kernel command line, ignoring: %s", strerror(-r));
+ log_warning_errno(r, "Failed to parse kernel command line, ignoring: %m");
if (!arg_enabled) {
log_debug("Disabled, exiting.");