fix format specifiers

This commit is contained in:
daan 2019-06-24 12:20:32 -07:00
parent cbbd57322a
commit f36149a9ac
2 changed files with 2 additions and 2 deletions

View File

@ -49,7 +49,7 @@ long mi_option_get(mi_option_t option) {
if (desc->init == UNINIT) { if (desc->init == UNINIT) {
mi_option_init(desc); mi_option_init(desc);
if (option != mi_option_verbose) { if (option != mi_option_verbose) {
_mi_verbose_message("option '%s': %zd\n", desc->name, desc->value); _mi_verbose_message("option '%s': %ld\n", desc->name, desc->value);
} }
} }
return desc->value; return desc->value;

View File

@ -188,7 +188,7 @@ static void mi_stats_print_bins(mi_stat_count_t* all, const mi_stat_count_t* bin
if (bins[i].allocated > 0) { if (bins[i].allocated > 0) {
found = true; found = true;
int64_t unit = _mi_bin_size((uint8_t)i); int64_t unit = _mi_bin_size((uint8_t)i);
snprintf(buf, 64, "%s %3zd", fmt, i); snprintf(buf, 64, "%s %3zu", fmt, i);
mi_stat_add(all, &bins[i], unit); mi_stat_add(all, &bins[i], unit);
mi_stat_print(&bins[i], buf, unit, out); mi_stat_print(&bins[i], buf, unit, out);
} }