mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-02 12:14:38 +02:00
cast size_t for printf mem output, c99 may not be available
This commit is contained in:
@@ -1048,10 +1048,14 @@ static INLINE int CurrentDir(const char* str)
|
|||||||
static INLINE void ShowMemoryTracker(void)
|
static INLINE void ShowMemoryTracker(void)
|
||||||
{
|
{
|
||||||
#ifdef DO_MEM_STATS
|
#ifdef DO_MEM_STATS
|
||||||
printf("total Allocs = %9ld\n", ourMemStats.totalAllocs);
|
printf("total Allocs = %9lu\n",
|
||||||
printf("total Bytes = %9ld\n", ourMemStats.totalBytes);
|
(unsigned long)ourMemStats.totalAllocs);
|
||||||
printf("peak Bytes = %9ld\n", ourMemStats.peakBytes);
|
printf("total Bytes = %9lu\n",
|
||||||
printf("current Bytes = %9ld\n", ourMemStats.currentBytes);
|
(unsigned long)ourMemStats.totalBytes);
|
||||||
|
printf("peak Bytes = %9lu\n",
|
||||||
|
(unsigned long)ourMemStats.peakBytes);
|
||||||
|
printf("current Bytes = %9lu\n",
|
||||||
|
(unsigned long)ourMemStats.currentBytes);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user