[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v4 06/13] pgp: Format code for grub_error is incorrect
From: |
Glenn Washburn |
Subject: |
[PATCH v4 06/13] pgp: Format code for grub_error is incorrect |
Date: |
Thu, 18 Feb 2021 20:47:07 -0600 |
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>
---
grub-core/commands/pgp.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/grub-core/commands/pgp.c b/grub-core/commands/pgp.c
index bbf6871fe..150cb6fe9 100644
--- a/grub-core/commands/pgp.c
+++ b/grub-core/commands/pgp.c
@@ -633,7 +633,7 @@ 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"),
+ grub_error (GRUB_ERR_BAD_SIGNATURE, N_("public key
%08"PRIxGRUB_UINT64_T" not found"),
keyid);
goto fail;
}
--
2.27.0
- [PATCH v4 00/13] error: Do compile-time format string checking on grub_error, Glenn Washburn, 2021/02/18
- [PATCH v4 01/13] misc: Format string for grub_error should be a literal, Glenn Washburn, 2021/02/18
- [PATCH v4 02/13] error: grub_error missing format string argument, Glenn Washburn, 2021/02/18
- [PATCH v4 04/13] dmraid_nvidia: Format string error in grub_error, Glenn Washburn, 2021/02/18
- [PATCH v4 03/13] error: grub_error format string add missing format code, Glenn Washburn, 2021/02/18
- [PATCH v4 08/13] error: Use %p format code for pointer types, Glenn Washburn, 2021/02/18
- [PATCH v4 07/13] efi: Format string error in grub_error, Glenn Washburn, 2021/02/18
- [PATCH v4 06/13] pgp: Format code for grub_error is incorrect,
Glenn Washburn <=
- [PATCH v4 10/13] error: Use format code PRIxGRUB_UINT64_T for 64-bit arg in grub_error, Glenn Washburn, 2021/02/18
- [PATCH v4 09/13] error: Use format code PRIxGRUB_UINT64_T for 64-bit uint argument in grub_error, Glenn Washburn, 2021/02/18
- [PATCH v4 13/13] error: Do compile-time format string checking on grub_error, Glenn Washburn, 2021/02/18
- [PATCH v4 05/13] grub_error: Use format code PRIuGRUB_SIZE for variables of type grub_size_t, Glenn Washburn, 2021/02/18
- [PATCH v4 12/13] error: Use format code llu for 64-bit uint bp->blk_prop in grub_error, Glenn Washburn, 2021/02/18
- [PATCH v4 11/13] error: Use format code PRIuGRUB_UINT64_T for 64-bit typed fileblock in grub_error, Glenn Washburn, 2021/02/18