mirror of
https://github.com/Tencent/MMKV.git
synced 2026-10-17 04:30:56 +08:00
change log to debug
This commit is contained in:
@@ -617,12 +617,12 @@ bool isDiskOfMMAPFileCorrupted(MemoryFile *file, bool &needReportReadFail) {
|
||||
// check the head of every page
|
||||
for (size_t index = 0; index < filesize; index += DEFAULT_MMAP_SIZE) {
|
||||
volatile uint8_t byte = ptr[index];
|
||||
MMKVInfo("%zu byte of the file: 0x%x", index, byte);
|
||||
MMKVDebug("%zu byte of the file: 0x%x", index, byte);
|
||||
}
|
||||
// check the very last byte of the file
|
||||
if (filesize > 1) {
|
||||
volatile uint8_t byte = ptr[filesize - 1];
|
||||
MMKVInfo("%zu byte of the file: 0x%x", filesize - 1, byte);
|
||||
MMKVDebug("%zu byte of the file: 0x%x", filesize - 1, byte);
|
||||
}
|
||||
}
|
||||
__except ((GetExceptionCode() == EXCEPTION_IN_PAGE_ERROR || GetExceptionCode() == EXCEPTION_ACCESS_VIOLATION)
|
||||
|
||||
Reference in New Issue
Block a user