]> git.cworth.org Git - apitrace/blobdiff - base.py
First stab at binary trace and retracing.
[apitrace] / base.py
diff --git a/base.py b/base.py
index e672a3ced1ebd22551109eaeffb340de509529b2..3c93c424dd16a7f74601b1f6af217fb93cbdd677 100644 (file)
--- a/base.py
+++ b/base.py
@@ -172,7 +172,7 @@ class Enum(Concrete):
         print '    switch(%s) {' % instance
         for value in self.values:
             print '    case %s:' % value
-            print '        Log::LiteralNamedConstant("%s");' % value
+            print '        Log::LiteralNamedConstant("%s", %s);' % (value, value)
             print '        break;'
         print '    default:'
         print '        Log::LiteralSInt(%s);' % instance
@@ -199,7 +199,7 @@ class Flags(Concrete):
         print '    Log::BeginBitmask("%s");' % (self.type,)
         for value in self.values:
             print '    if((l_Value & %s) == %s) {' % (value, value)
-            print '        Log::LiteralNamedConstant("%s");' % value
+            print '        Log::LiteralNamedConstant("%s", %s);' % (value, value)
             print '        l_Value &= ~%s;' % value
             print '    }'
         print '    if(l_Value) {'