* Fixed another check, the warning "first free too late" was printed even

though there was no problem.
* Nevertheless, improved output of that warning :-)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28121 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2008-10-15 08:49:53 +00:00
parent 39e9e0e43b
commit ab8b37cf9f

View File

@ -1040,10 +1040,11 @@ BlockAllocator::_CheckGroup(int32 groupIndex) const
if (firstFree < 0) {
firstFree = currentBit;
if (!group.fLargestValid) {
if (firstFree < group.fFirstFree) {
if (firstFree >= 0 && firstFree < group.fFirstFree) {
// mostly harmless but noteworthy
dprintf("group %d first free too late\n",
(int)groupIndex);
dprintf("group %d first free too late: should be "
"%d, is %d\n", (int)groupIndex, (int)firstFree,
(int)group.fFirstFree);
}
return;
}
@ -1071,10 +1072,10 @@ BlockAllocator::_CheckGroup(int32 groupIndex) const
largestLength = currentLength;
}
if (firstFree < group.fFirstFree) {
if (firstFree >= 0 && firstFree < group.fFirstFree) {
// mostly harmless but noteworthy
dprintf("group %d first free too late\n",
(int)groupIndex);
dprintf("group %d first free too late: should be %d, is %d\n",
(int)groupIndex, (int)firstFree, (int)group.fFirstFree);
}
if (group.fLargestValid
&& (largestStart != group.fLargestStart