commands/pgp: Format code for grub_error() is incorrect

The format code is for a 32-bit int, but the argument, keyid, is declared as
a 64 bit int. The comment above says keyid is 32-bit. I'm not sure if the
comment or declaration is wrong, so force the display of a 64-bit int for now.

Signed-off-by: Glenn Washburn <development@efficientek.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
This commit is contained in:
Glenn Washburn 2021-03-04 18:22:37 -06:00 committed by Daniel Kiper
parent e96c7645f4
commit 12371e40ea

View File

@ -633,8 +633,8 @@ grub_verify_signature_real (struct grub_pubkey_context *ctxt,
if (!sk) if (!sk)
{ {
/* TRANSLATORS: %08x is 32-bit key id. */ /* TRANSLATORS: %08x is 32-bit key id. */
grub_error (GRUB_ERR_BAD_SIGNATURE, N_("public key %08x not found"), grub_error (GRUB_ERR_BAD_SIGNATURE,
keyid); N_("public key %08" PRIxGRUB_UINT64_T " not found"), keyid);
goto fail; goto fail;
} }