* 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:
parent
39e9e0e43b
commit
ab8b37cf9f
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user