From e19030915bf8f09b29ef093220c14fa4cba9ad54 Mon Sep 17 00:00:00 2001 From: Ondrej Kozina Date: Tue, 8 Oct 2024 16:23:30 +0200 Subject: [PATCH] Unify integer format parameter in prompt. There was only single occurence of the prompt message with %u. Let's use %d as anywhere else. --- src/utils_reencrypt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils_reencrypt.c b/src/utils_reencrypt.c index 9fbe5ff98..c18ea6c25 100644 --- a/src/utils_reencrypt.c +++ b/src/utils_reencrypt.c @@ -1067,7 +1067,7 @@ static int fill_keyslot_passwords(struct crypt_device *cd, break; } } else { - if (snprintf(msg, sizeof(msg), _("Enter passphrase for key slot %u: "), ARG_INT32(OPT_KEY_SLOT_ID)) < 0) + if (snprintf(msg, sizeof(msg), _("Enter passphrase for key slot %d: "), ARG_INT32(OPT_KEY_SLOT_ID)) < 0) return -EINVAL; r = init_passphrase(kp, kp_size, cd, msg, ARG_INT32(OPT_KEY_SLOT_ID)); }