Migrate force_log_printf to new logging (#714)

This commit is contained in:
why-keith 2023-04-12 15:31:34 +01:00 committed by GitHub
parent 072c18a6e3
commit 4be57f4896
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
108 changed files with 401 additions and 399 deletions

View file

@ -189,11 +189,11 @@ private:
auto it = list_chunks[addr.chunkIndex]->map_allocatedRange.find(addr.offset);
if (it == list_chunks[addr.chunkIndex]->map_allocatedRange.end())
{
forceLog_printf("Internal heap error. %08x %08x", addr.chunkIndex, addr.offset);
cemuLog_log(LogType::Force, "Internal heap error. {:08x} {:08x}", addr.chunkIndex, addr.offset);
forceLog_printf("Debug info:");
for (auto& rangeItr : list_chunks[addr.chunkIndex]->map_allocatedRange)
{
forceLog_printf("%08x %08x", rangeItr.second->offset, rangeItr.second->size);
cemuLog_log(LogType::Force, "{:08x} {:08x}", rangeItr.second->offset, rangeItr.second->size);
}
return;
}
@ -638,4 +638,4 @@ private:
uint8* m_currentBlockPtr{};
uint32 m_currentBlockOffset{};
std::vector<void*> m_allocatedBlocks;
};
};