From ea9784b32bc9e20c23e31f3e25cca34a4dabd20b Mon Sep 17 00:00:00 2001 From: toddouska Date: Thu, 21 Mar 2013 07:58:53 -0700 Subject: [PATCH] cast size_t for printf mem output, c99 may not be available --- cyassl/test.h | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/cyassl/test.h b/cyassl/test.h index b3fa3823e..4a0f943a1 100644 --- a/cyassl/test.h +++ b/cyassl/test.h @@ -1048,10 +1048,14 @@ static INLINE int CurrentDir(const char* str) static INLINE void ShowMemoryTracker(void) { #ifdef DO_MEM_STATS - printf("total Allocs = %9ld\n", ourMemStats.totalAllocs); - printf("total Bytes = %9ld\n", ourMemStats.totalBytes); - printf("peak Bytes = %9ld\n", ourMemStats.peakBytes); - printf("current Bytes = %9ld\n", ourMemStats.currentBytes); + printf("total Allocs = %9lu\n", + (unsigned long)ourMemStats.totalAllocs); + printf("total Bytes = %9lu\n", + (unsigned long)ourMemStats.totalBytes); + printf("peak Bytes = %9lu\n", + (unsigned long)ourMemStats.peakBytes); + printf("current Bytes = %9lu\n", + (unsigned long)ourMemStats.currentBytes); #endif }