chiark / gitweb /
treewide: no need to negate errno for log_*_errno()
[elogind.git] / src / cryptsetup / cryptsetup-generator.c
index c1f167a189ae58150c2ba958f88870c8c971d2b4..1b408ea4475accdda9ceca3d597b728478a17c18 100644 (file)
@@ -255,7 +255,7 @@ static int create_disk(
                                   "# Automatically generated by systemd-cryptsetup-generator \n\n"
                                   "[Unit]\nJobTimeoutSec=0");
                 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;
                 }
         }
@@ -327,7 +327,7 @@ int main(int argc, char *argv[]) {
 
         z = parse_proc_cmdline(parse_proc_cmdline_item);
         if (z < 0)
-                log_warning_errno(-z, "Failed to parse kernel command line, ignoring: %m");
+                log_warning_errno(z, "Failed to parse kernel command line, ignoring: %m");
 
         if (!arg_enabled) {
                 r = r2 = EXIT_SUCCESS;