* Remove usage of 'mallinfo' and use 'mallinfo2 instead
* Change 'count' format to be 'ulong' instead of 'int'

Signed-off-by: Steven J. Hill <steven.h...@konsulko.com>
---
 src/helper/log.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/helper/log.c b/src/helper/log.c
index 471069ade..185a00bf2 100644
--- a/src/helper/log.c
+++ b/src/helper/log.c
@@ -105,12 +105,12 @@ static void log_puts(enum log_levels level,
                /* print with count and time information */
                int64_t t = timeval_ms() - start;
 #ifdef _DEBUG_FREE_SPACE_
-               struct mallinfo info;
-               info = mallinfo();
+               struct mallinfo2 info;
+               info = mallinfo2();
 #endif
                fprintf(log_output, "%s%d %" PRId64 " %s:%d %s()"
 #ifdef _DEBUG_FREE_SPACE_
-                       " %d"
+                       " %lu"
 #endif
                        ": %s", log_strings[level + 1], count, t, file, line, 
function,
 #ifdef _DEBUG_FREE_SPACE_
-- 
2.34.1


Reply via email to