Fix malloc_stats_print() to print correct opt.narenas value.

This regression was caused by 8f683b94a7
(Make opt_narenas unsigned rather than size_t.).
This commit is contained in:
Jason Evans 2016-04-11 18:47:18 -07:00
parent 8c83c021b0
commit d65db0e402

View File

@ -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) { \