[FEATURE] Log everything via Logger

This commit is contained in:
hasherezade
2016-11-05 03:06:34 +01:00
parent 05a409fe17
commit 5b41545749
13 changed files with 44 additions and 38 deletions
+1 -1
View File
@@ -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;
}