From 0a610319bde92125633e0cd4f0d8b59bd029831a Mon Sep 17 00:00:00 2001 From: Jakub Jelen Date: Tue, 3 Mar 2020 10:57:33 +0100 Subject: [PATCH] pkcs11-tool: Fix wrong printf arguments This argument should be of type 'unsigned int' but is of type 'unsigned long' Thanks lgtm --- 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 9f5cda81..bf8e7bc9 100644 --- a/src/tools/pkcs11-tool.c +++ b/src/tools/pkcs11-tool.c @@ -3328,7 +3328,7 @@ static int write_object(CK_SESSION_HANDLE session) else if (strncasecmp(opt_key_type, "DES3:", strlen("DES3:")) == 0) type = CKK_DES3; else - util_fatal("Unknown key type: 0x%X", type); + util_fatal("Unknown key type: 0x%lX", type); } FILL_ATTR(seckey_templ[0], CKA_CLASS, &clazz, sizeof(clazz)); @@ -4489,7 +4489,7 @@ static int read_object(CK_SESSION_HANDLE session) #endif } else - util_fatal("Reading public keys of type 0x%X not (yet) supported", type); + util_fatal("Reading public keys of type 0x%lX not (yet) supported", type); value = BIO_copy_data(pout, &derlen); BIO_free(pout); len = derlen;