From: Lennart Poettering Date: Tue, 24 Nov 2020 12:56:48 +0000 (+0100) Subject: cryptsetup: use log_warning_errno() where we can, instead of log_warning() X-Git-Tag: v247~13 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8bc6ade721ef0b356df0d3f21829d6055aba5ed3;p=thirdparty%2Fsystemd.git cryptsetup: use log_warning_errno() where we can, instead of log_warning() --- diff --git a/src/cryptsetup/cryptsetup.c b/src/cryptsetup/cryptsetup.c index f0761ac8aa5..5f9d7bb3bbb 100644 --- a/src/cryptsetup/cryptsetup.c +++ b/src/cryptsetup/cryptsetup.c @@ -448,10 +448,9 @@ static int get_password( assert(strv_length(passwords2) == 1); - if (!streq(passwords[0], passwords2[0])) { - log_warning("Passwords did not match, retrying."); - return -EAGAIN; - } + if (!streq(passwords[0], passwords2[0])) + return log_warning_errno(SYNTHETIC_ERRNO(EAGAIN), + "Passwords did not match, retrying."); } strv_uniq(passwords);