summaryrefslogtreecommitdiff
path: root/src/coredump
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2020-06-24 16:34:36 +0200
committerLennart Poettering <lennart@poettering.net>2020-06-25 15:03:13 +0200
commit3afe5c00a56a2f75ef2061ce907874c0c3473859 (patch)
tree7d02ae421000256e342ada5fb8a94f53607f3a3c /src/coredump
parentd80b051cea90376ed8a202a7567facbc1410b9ae (diff)
downloadsystemd-3afe5c00a56a2f75ef2061ce907874c0c3473859.tar.gz
coredump: use log_error_errno() where appropriate
Diffstat (limited to 'src/coredump')
-rw-r--r--src/coredump/coredumpctl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/coredump/coredumpctl.c b/src/coredump/coredumpctl.c
index c68fc6b4c9..02502528af 100644
--- a/src/coredump/coredumpctl.c
+++ b/src/coredump/coredumpctl.c
@@ -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 {