summaryrefslogtreecommitdiff
path: root/src/gpt-auto-generator
diff options
context:
space:
mode:
authorMichal Schmidt <mschmidt@redhat.com>2014-11-28 13:19:16 +0100
committerMichal Schmidt <mschmidt@redhat.com>2014-11-28 13:29:21 +0100
commitda927ba997d68401563b927f92e6e40e021a8e5c (patch)
tree71764cd998aef07b8943c5206c9307a93ba9c528 /src/gpt-auto-generator
parent0a1beeb64207eaa88ab9236787b1cbc2f704ae14 (diff)
downloadsystemd-da927ba997d68401563b927f92e6e40e021a8e5c.tar.gz
systemd-da927ba997d68401563b927f92e6e40e021a8e5c.tar.bz2
systemd-da927ba997d68401563b927f92e6e40e021a8e5c.zip
treewide: no need to negate errno for log_*_errno()
It corrrectly handles both positive and negative errno values.
Diffstat (limited to 'src/gpt-auto-generator')
-rw-r--r--src/gpt-auto-generator/gpt-auto-generator.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/gpt-auto-generator/gpt-auto-generator.c b/src/gpt-auto-generator/gpt-auto-generator.c
index 7deee3fc44..9803fca420 100644
--- a/src/gpt-auto-generator/gpt-auto-generator.c
+++ b/src/gpt-auto-generator/gpt-auto-generator.c
@@ -205,7 +205,7 @@ static int add_cryptsetup(const char *id, const char *what, bool rw, char **devi
"[Unit]\n"
"JobTimeoutSec=0\n"); /* the binary handles timeouts anyway */
if (r < 0) {
- log_error_errno(-r, "Failed to write device drop-in: %m");
+ log_error_errno(r, "Failed to write device drop-in: %m");
return r;
}
@@ -488,7 +488,7 @@ static int enumerate_partitions(dev_t devnum) {
r = udev_enumerate_scan_devices(e);
if (r < 0) {
- log_error_errno(-r, "Failed to enumerate partitions on %s: %m", node);
+ log_error_errno(r, "Failed to enumerate partitions on %s: %m", node);
return r;
}
@@ -713,7 +713,7 @@ static int add_root_mount(void) {
log_debug("EFI loader partition unknown, exiting.");
return 0;
} else if (r < 0) {
- log_error_errno(-r, "Failed to read ESP partition UUID: %m");
+ log_error_errno(r, "Failed to read ESP partition UUID: %m");
return r;
}
@@ -740,7 +740,7 @@ static int add_mounts(void) {
r = get_block_device("/", &devno);
if (r < 0) {
- log_error_errno(-r, "Failed to determine block device of root file system: %m");
+ 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.");
@@ -774,7 +774,7 @@ int main(int argc, char *argv[]) {
r = parse_proc_cmdline(parse_proc_cmdline_item);
if (r < 0)
- log_warning_errno(-r, "Failed to parse kernel command line, ignoring: %m");
+ log_warning_errno(r, "Failed to parse kernel command line, ignoring: %m");
if (!arg_enabled) {
log_debug("Disabled, exiting.");