Don't confuse 2 ^ n with 1 << n in debugging output.

This commit is contained in:
Dag-Erling Smørgrav 2016-11-14 12:39:18 +01:00
parent 2ba5067496
commit c6158a8dbf

View file

@ -525,7 +525,7 @@ t_malloc_printstats(FILE *f)
for (shift = BUCKET_MIN_SHIFT; shift <= BUCKET_MAX_SHIFT; ++shift) {
b = &buckets[shift];
if (b->nalloc > 0)
fprintf(f, " 1^%-3u %9lu %9lu %9lu\n",
fprintf(f, " 2^%-3u %9lu %9lu %9lu\n",
shift, b->nalloc, b->nfree,
b->nalloc - b->nfree);
}