Unify integer format parameter in prompt.

There was only single occurence of the prompt
message with %u. Let's use %d as anywhere else.
This commit is contained in:
Ondrej Kozina
2024-10-08 16:23:30 +02:00
committed by Milan Broz
parent e4bf1f91b9
commit e19030915b

View File

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