From: Lennart Poettering Date: Wed, 24 Jun 2020 14:34:36 +0000 (+0200) Subject: coredump: use log_error_errno() where appropriate X-Git-Tag: v246-rc1~84^2~2 X-Git-Url: http://git.ipfire.org/?p=thirdparty%2Fsystemd.git;a=commitdiff_plain;h=3afe5c00a56a2f75ef2061ce907874c0c3473859 coredump: use log_error_errno() where appropriate --- diff --git a/src/coredump/coredumpctl.c b/src/coredump/coredumpctl.c index c68fc6b4c99..02502528afe 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 {