From d70df78b0084e9babae8abab80015da9344dd9f9 Mon Sep 17 00:00:00 2001 From: Jakub Jelen Date: Mon, 6 Jan 2025 17:56:49 +0100 Subject: [PATCH] pkcs11-tool: Fix format string Signed-off-by: Jakub Jelen --- src/tools/pkcs11-tool.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tools/pkcs11-tool.c b/src/tools/pkcs11-tool.c index d701d76d6a..353703c654 100644 --- a/src/tools/pkcs11-tool.c +++ b/src/tools/pkcs11-tool.c @@ -2447,7 +2447,7 @@ static void sign_data(CK_SLOT_ID slot, CK_SESSION_HANDLE session, util_fatal("Cannot read from %s: %m", opt_input); if (opt_mechanism == CKM_RSA_PKCS_PSS && (size_t)sz != hashlen) { - util_fatal("For %s mechanism, message size (got %z bytes) " + util_fatal("For %s mechanism, message size (got %zd bytes) " "must be equal to specified digest length (%lu)\n", p11_mechanism_to_name(opt_mechanism), sz, hashlen); } else if (opt_mechanism == CKM_AES_CMAC_GENERAL) { @@ -2653,7 +2653,7 @@ static void verify_signature(CK_SLOT_ID slot, CK_SESSION_HANDLE session, util_fatal("Cannot read from %s: %m", opt_input); if (opt_mechanism == CKM_RSA_PKCS_PSS && (size_t)sz != hashlen) { - util_fatal("For %s mechanism, message size (got %z bytes)" + util_fatal("For %s mechanism, message size (got %zd bytes)" " must be equal to specified digest length (%lu)\n", p11_mechanism_to_name(opt_mechanism), sz, hashlen); } else if (opt_mechanism == CKM_AES_CMAC_GENERAL) {