]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
coredump: use log_error_errno() where appropriate
authorLennart Poettering <lennart@poettering.net>
Wed, 24 Jun 2020 14:34:36 +0000 (16:34 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 25 Jun 2020 13:03:13 +0000 (15:03 +0200)
src/coredump/coredumpctl.c

index c68fc6b4c99c2301682be68a7fcee1e17a3794bf..02502528afe2bf3909d53742410e29f8e19c64e5 100644 (file)
@@ -839,8 +839,8 @@ static int save_core(sd_journal *j, FILE *file, char **path, bool *unlink_temp)
                         goto error;
                 }
 #else
-                log_error("Cannot decompress file. Compiled without compression support.");
-                r = -EOPNOTSUPP;
+                r = log_error_errno(SYNTHETIC_ERRNO(EOPNOTSUPP),
+                                    "Cannot decompress file. Compiled without compression support.");
                 goto error;
 #endif
         } else {