diff --git a/wolfssl/test.h b/wolfssl/test.h index 81fa0e8fa..08e347788 100644 --- a/wolfssl/test.h +++ b/wolfssl/test.h @@ -1132,7 +1132,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);