Skip to content

Commit d253d47

Browse files
committed
pkcs11-tool: Fix format string
Signed-off-by: Jakub Jelen <jjelen@redhat.com>
1 parent 9cb58e6 commit d253d47

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/tools/pkcs11-tool.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -2447,7 +2447,7 @@ static void sign_data(CK_SLOT_ID slot, CK_SESSION_HANDLE session,
24472447
util_fatal("Cannot read from %s: %m", opt_input);
24482448

24492449
if (opt_mechanism == CKM_RSA_PKCS_PSS && (size_t)sz != hashlen) {
2450-
util_fatal("For %s mechanism, message size (got %z bytes) "
2450+
util_fatal("For %s mechanism, message size (got %zd bytes) "
24512451
"must be equal to specified digest length (%lu)\n",
24522452
p11_mechanism_to_name(opt_mechanism), sz, hashlen);
24532453
} else if (opt_mechanism == CKM_AES_CMAC_GENERAL) {
@@ -2653,7 +2653,7 @@ static void verify_signature(CK_SLOT_ID slot, CK_SESSION_HANDLE session,
26532653
util_fatal("Cannot read from %s: %m", opt_input);
26542654

26552655
if (opt_mechanism == CKM_RSA_PKCS_PSS && (size_t)sz != hashlen) {
2656-
util_fatal("For %s mechanism, message size (got %z bytes)"
2656+
util_fatal("For %s mechanism, message size (got %zd bytes)"
26572657
" must be equal to specified digest length (%lu)\n",
26582658
p11_mechanism_to_name(opt_mechanism), sz, hashlen);
26592659
} else if (opt_mechanism == CKM_AES_CMAC_GENERAL) {

0 commit comments

Comments
 (0)