Fixed blocks_per_ag bug and added some more debug output.

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6534 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2004-02-09 00:05:12 +00:00
parent 7a791c897c
commit a957866a22

View File

@ -55,11 +55,13 @@ main(int argc, char **argv)
break; break;
ag_shift++; ag_shift++;
blocks_per_ag++; blocks_per_ag *= 2;
} else } else
break; break;
} }
printf("blocks = %Ld\n", numBlocks);
printf("bits per block = %lu\n", bitsPerBlock);
printf("bitmap blocks = %Ld\n", bitmapBlocks); printf("bitmap blocks = %Ld\n", bitmapBlocks);
printf("allocation groups = %lu\n", num_ags); printf("allocation groups = %lu\n", num_ags);
printf("shift = %lu (%lu)\n", ag_shift, 1UL << ag_shift); printf("shift = %lu (%lu)\n", ag_shift, 1UL << ag_shift);