From: José Fonseca Date: Wed, 9 May 2012 20:57:10 +0000 (+0100) Subject: Silent bogus warnings. X-Git-Url: https://git.cworth.org/git?a=commitdiff_plain;h=fe8a38c8009bdb3539dd9d16d132def0feca5e1e;p=apitrace Silent bogus warnings. --- diff --git a/retrace/retrace_stdc.cpp b/retrace/retrace_stdc.cpp index 9ffacad..df3e0c3 100644 --- a/retrace/retrace_stdc.cpp +++ b/retrace/retrace_stdc.cpp @@ -193,8 +193,9 @@ lookupAddress(unsigned long long address) { return addr; } - if (retrace::debug && address >= 0x00400000) { - std::cerr << "warning: could not translate address 0x" << std::hex << address << std::dec << "\n"; + if (retrace::debug && address >= 64 * 1024 * 1024) { + /* Likely not an offset, but an address that should had been swizzled */ + std::cerr << "warning: passing high address 0x" << std::hex << address << std::dec << " as uintptr_t\n"; } return (void *)(uintptr_t)address;