From 335b6d41c1c3d6b39ea1574cbf88389bd8f7d5f2 Mon Sep 17 00:00:00 2001 From: Sean Parkinson Date: Mon, 10 Apr 2017 10:26:36 +1000 Subject: [PATCH] 32-bit size_t and printf fix --- wolfssl/test.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wolfssl/test.h b/wolfssl/test.h index d481c4b03..db4bf5f9e 100644 --- a/wolfssl/test.h +++ b/wolfssl/test.h @@ -1130,7 +1130,7 @@ static INLINE unsigned int my_psk_server_cb(WOLFSSL* ssl, const char* identity, *buf = (byte*)malloc(*bufLen); if (*buf == NULL) { ret = MEMORY_E; - printf("Error allocating %lu bytes\n", *bufLen); + printf("Error allocating %lu bytes\n", (unsigned long)*bufLen); } else { size_t readLen = fread(*buf, *bufLen, 1, file);