summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBen Judd <ben@judd.blue>2021-04-17 13:49:21 -0700
committerBen Judd <ben@judd.blue>2021-04-17 13:49:21 -0700
commitdb3203fe59b32eb956fcb004a8ef863fad199899 (patch)
treed1262beaec5f203549c8cbf1664f1c0c6ca1b453 /src
parent5696ed02e49cb9ba076a9a8ce908597720e7df1c (diff)
mallinfo is deprecated in favor of mallinfo2
Diffstat (limited to 'src')
-rw-r--r--src/commands.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/commands.cc b/src/commands.cc
index 85e45c4b..db2dc168 100644
--- a/src/commands.cc
+++ b/src/commands.cc
@@ -1446,7 +1446,7 @@ const CommandDesc debug_cmd = {
write_to_debug_buffer({});
write_to_debug_buffer(format(" Total: {}", total));
#if defined(__GLIBC__) || defined(__CYGWIN__)
- write_to_debug_buffer(format(" Malloced: {}", mallinfo().uordblks));
+ write_to_debug_buffer(format(" Malloced: {}", mallinfo2().uordblks));
#endif
}
else if (parser[0] == "shared-strings")