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 667eca2ac2
commit e7642715ac

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