This is an automated email from Gerrit. "Antonio Borneo <borneo.anto...@gmail.com>" just uploaded a new patch set to Gerrit, which you can find at https://review.openocd.org/c/openocd/+/8589
-- gerrit commit 2c6432b7d5dfcfd9e4635b210af69cc4c8951bf3 Author: Steven J. Hill <steven.h...@konsulko.com> Date: Mon Feb 19 20:11:07 2024 -0600 helper/log: Fix build using _DEBUG_FREE_SPACE_ The API 'mallinfo' is deprecated and 'mallinfo2' should be used as replacement. Remove usage of 'mallinfo' and use 'mallinfo2 instead. Change 'fordblks' format to be 'size_t' instead of 'int'. Change-Id: I68bff7b1b58f0ec2669db0b911f19c1c5a26ed30 Signed-off-by: Steven J. Hill <steven.h...@konsulko.com> Signed-off-by: Antonio Borneo <borneo.anto...@gmail.com> diff --git a/src/helper/log.c b/src/helper/log.c index 9ad00ce628..b3971c6710 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" + " %zu" #endif ": %s", log_strings[level + 1], count, t, file, line, function, #ifdef _DEBUG_FREE_SPACE_ --