X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=wrappers%2Ftrace.py;h=70b5e95978d0e4733d6a8a298849cf477161491c;hb=da7bbffeef688461351b45f95c14945142db5921;hp=10f71a4dc7a32362dfafe3d96d68705ed3578db8;hpb=c037ae2b4f749aed15ede635a6b517534bc5a901;p=apitrace diff --git a/wrappers/trace.py b/wrappers/trace.py index 10f71a4..70b5e95 100644 --- a/wrappers/trace.py +++ b/wrappers/trace.py @@ -259,7 +259,7 @@ class ValueSerializer(stdapi.Visitor, stdapi.ExpanderMixin): print ' default:' print ' trace::localWriter.beginElement();' print ' os::log("apitrace: warning: %s: unknown key 0x%04X, interpreting value as int\\n", ' + \ - '__FUNCTION__, int(%(array)s[%(i)s]));' % {'array': instance, 'i': index} + '__FUNCTION__, int(%(array)s[%(i)s - 1]));' % {'array': instance, 'i': index} print ' trace::localWriter.writeSInt(%(array)s[%(i)s]);' % {'array': instance, 'i': index} print ' trace::localWriter.endElement();' print ' break;'