cryptsetup: use log_warning_errno() where we can, instead of log_warning()

This commit is contained in:
Lennart Poettering 2020-11-24 13:56:48 +01:00 committed by Zbigniew Jędrzejewski-Szmek
parent ef58c14587
commit 8bc6ade721
1 changed files with 3 additions and 4 deletions

View File

@ -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);