]> git.proxmox.com Git - grub2.git/commitdiff
commands/pgp: Format code for grub_error() is incorrect
authorGlenn Washburn <development@efficientek.com>
Fri, 5 Mar 2021 00:22:37 +0000 (18:22 -0600)
committerDaniel Kiper <daniel.kiper@oracle.com>
Wed, 10 Mar 2021 13:52:36 +0000 (14:52 +0100)
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>
grub-core/commands/pgp.c

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