summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJason Evans <jasone@canonware.com>2016-04-12 01:47:18 (GMT)
committerJason Evans <jasone@canonware.com>2016-04-12 01:47:18 (GMT)
commite7642715ac535cf88585d4e5ca191c8042cc2399 (patch)
treeafe18c2dbecfbfed3ecaab503994350f39dd0c0a /src
parent667eca2ac215153855e62a75263df7accf25cdbc (diff)
downloadjemalloc-e7642715ac535cf88585d4e5ca191c8042cc2399.zip
jemalloc-e7642715ac535cf88585d4e5ca191c8042cc2399.tar.gz
jemalloc-e7642715ac535cf88585d4e5ca191c8042cc2399.tar.bz2
Fix malloc_stats_print() to print correct opt.narenas value.
This regression was caused by 8f683b94a751c65af8f9fa25970ccf2917b96bb8 (Make opt_narenas unsigned rather than size_t.).
Diffstat (limited to 'src')
-rw-r--r--src/stats.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stats.c b/src/stats.c
index a724947..87b09e5 100644
--- a/src/stats.c
+++ b/src/stats.c
@@ -468,7 +468,7 @@ stats_print(void (*write_cb)(void *, const char *), void *cbopaque,
#define OPT_WRITE_UNSIGNED(n) \
if (je_mallctl("opt."#n, &uv, &usz, NULL, 0) == 0) { \
malloc_cprintf(write_cb, cbopaque, \
- " opt."#n": %zu\n", sv); \
+ " opt."#n": %u\n", uv); \
}
#define OPT_WRITE_SIZE_T(n) \
if (je_mallctl("opt."#n, &sv, &ssz, NULL, 0) == 0) { \