diff --git a/Source/Core/Core/Src/Console.cpp b/Source/Core/Core/Src/Console.cpp index 826047f61a..61b23255e7 100644 --- a/Source/Core/Core/Src/Console.cpp +++ b/Source/Core/Core/Src/Console.cpp @@ -78,9 +78,12 @@ void Console_Submit(const char *cmd) sscanf(cmd, "%s %08x", temp, &addr); if (addr!=0) - { - LOG(CONSOLE, "EA 0x%08x to 0x%08x", - addr, Memory::CheckDTLB(addr, Memory::FLAG_NO_EXCEPTION)); + { +#ifdef LOGGING + u32 EA = +#endif + Memory::CheckDTLB(addr, Memory::FLAG_NO_EXCEPTION); + LOG(CONSOLE, "EA 0x%08x to 0x%08x", addr, EA); } else {