]> git.cworth.org Git - apitrace/commitdiff
Silent bogus warnings.
authorJosé Fonseca <jose.r.fonseca@gmail.com>
Wed, 9 May 2012 20:57:10 +0000 (21:57 +0100)
committerJosé Fonseca <jose.r.fonseca@gmail.com>
Wed, 9 May 2012 20:57:10 +0000 (21:57 +0100)
retrace/retrace_stdc.cpp

index 9ffacade8df5b64bc82fbec653aa9202801e6f68..df3e0c38efe960bad19714e844995a6ded76be2a 100644 (file)
@@ -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;