From 8bc6ade721ef0b356df0d3f21829d6055aba5ed3 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Tue, 24 Nov 2020 13:56:48 +0100 Subject: [PATCH] cryptsetup: use log_warning_errno() where we can, instead of log_warning() --- src/cryptsetup/cryptsetup.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/cryptsetup/cryptsetup.c b/src/cryptsetup/cryptsetup.c index f0761ac8aa..5f9d7bb3bb 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);