X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=wrappers%2Ftrace.py;h=9bacf8a2ff5b4d04bdc1c2f9827b1ac34a3283d0;hb=621d0b3f841872e7d73465a7ec55afebad17bfdb;hp=0d7741eb391e55ef5c6d51ef0429d7b206ef8ae3;hpb=8b095e5763690867bdc5e8ae204e0712a669b880;p=apitrace diff --git a/wrappers/trace.py b/wrappers/trace.py index 0d7741e..9bacf8a 100644 --- a/wrappers/trace.py +++ b/wrappers/trace.py @@ -257,7 +257,9 @@ class ValueSerializer(stdapi.Visitor, stdapi.ExpanderMixin): # unknown key, write an int value print ' default:' print ' trace::localWriter.beginElement();' - print ' trace::localWriter.writeSInt(%(array)s[%(i)s]);' % {'array': instance, 'i': index} + print ' os::log("apitrace: warning: %s: unknown key 0x%04X, interpreting value as int\\n", ' + \ + '__FUNCTION__, %(array)s[%(i)s]);' % {'array': instance, 'i': index} + print ' trace::localWriter.writeSInt(%(array)s[%(i)s]);' % {'array': instance, 'i': index} print ' trace::localWriter.endElement();' print ' break;' print ' }'