]> git.cworth.org Git - apitrace/blobdiff - cgltrace.py
cli: Add a new "apitrace diff" command.
[apitrace] / cgltrace.py
index 92626f3a19620e039ffe46863c6a028b6acbc5ad..b6a6fd0847215e9775f195b1a40c7cb2f740c774 100644 (file)
@@ -27,9 +27,9 @@
 """Cgl tracing generator."""
 
 
-from stdapi import API
-from glapi import glapi
-from cglapi import cglapi
+from specs.stdapi import API
+from specs.glapi import glapi
+from specs.cglapi import cglapi
 from gltrace import GlTracer
 
 
@@ -106,8 +106,8 @@ void * __libgl_sym(const char *symbol)
         }
 
         if (!libgl_handle) {
-            OS::DebugMessage("apitrace: error: couldn't load %s\n", libgl_filename);
-            OS::Abort();
+            os::log("apitrace: error: couldn't load %s\n", libgl_filename);
+            os::abort();
             return NULL;
         }
     }
@@ -115,8 +115,8 @@ void * __libgl_sym(const char *symbol)
     result = dlsym(libgl_handle, symbol);
 
     if (result == dlsym(RTLD_SELF, symbol)) {
-        OS::DebugMessage("apitrace: error: symbol lookup recursion\n");
-        OS::Abort();
+        os::log("apitrace: error: symbol lookup recursion\n");
+        os::abort();
         return NULL;
     }