From 7dac2fc64e273c039d5ba009b6c757e746baa307 Mon Sep 17 00:00:00 2001 From: Paul Bartell Date: Tue, 21 Nov 2023 15:43:45 -0800 Subject: [PATCH] Fix type used in LogDebug format string Fixes #185 --- source/portable/mbedtls/core_pkcs11_mbedtls.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/portable/mbedtls/core_pkcs11_mbedtls.c b/source/portable/mbedtls/core_pkcs11_mbedtls.c index f953c3b9..ee620d52 100644 --- a/source/portable/mbedtls/core_pkcs11_mbedtls.c +++ b/source/portable/mbedtls/core_pkcs11_mbedtls.c @@ -4531,7 +4531,7 @@ CK_DECLARE_FUNCTION( CK_RV, C_Sign )( CK_SESSION_HANDLE hSession, } else { - LogDebug( ( "Ready to sign: xSignatureLength=%ld *pulSignatureLen=%ld", xSignatureLength, *pulSignatureLen ) ); + LogDebug( ( "Ready to sign: xSignatureLength=%lu *pulSignatureLen=%lu", (unsigned long int) xSignatureLength, *pulSignatureLen ) ); /* Per mbed TLS documentation, if using RSA, md_alg should * be MBEDTLS_MD_NONE. If ECDSA, md_alg should never be