mirror of
https://github.com/hasherezade/bearparser
synced 2026-06-08 14:32:38 +00:00
[FEATURE] Log everything via Logger
This commit is contained in:
@@ -86,7 +86,7 @@ offset_t Executable::toRaw(offset_t offset, addr_type aT, bool allowExceptions)
|
||||
if (offset == INVALID_ADDR) return INVALID_ADDR;
|
||||
|
||||
if (this->isValidAddr(offset, aT) == false) {
|
||||
if (DBG_LVL) printf("Address out of bounds: offset = %lX addrType = %d\n", offset, aT);
|
||||
Logger::append(Logger::ERROR, "Address out of bounds: offset = %lX addrType = %d\n", offset, aT);
|
||||
if (allowExceptions) throw CustomException("Address out of bounds!");
|
||||
return INVALID_ADDR;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user