X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=trace.py;h=4d6d97450501b12280740aecbd06b45a9d22979e;hb=1da480dd320a9d3d631a94025ca40609099f6d34;hp=7350d932421e6572b1c4caae15fca059d408d7fb;hpb=b5e8138d32a9901df0dd0b9c1ae0b997cfed0d68;p=apitrace diff --git a/trace.py b/trace.py index 7350d93..4d6d974 100644 --- a/trace.py +++ b/trace.py @@ -543,7 +543,7 @@ class Tracer: self.wrapArg(method, arg) if riid is not None and isinstance(arg.type, Pointer): if isinstance(arg.type.type, Opaque): - self.wrapIid(riid, arg) + self.wrapIid(interface, method, riid, arg) else: assert isinstance(arg.type.type, Pointer) assert isinstance(arg.type.type.type, Interface) @@ -559,7 +559,7 @@ class Tracer: print ' if (!__result)' print ' delete this;' - def wrapIid(self, riid, out): + def wrapIid(self, interface, method, riid, out): print ' if (%s && *%s) {' % (out.name, out.name) print ' if (*%s == m_pInstance) {' % (out.name,) print ' *%s = this;' % (out.name,) @@ -569,8 +569,8 @@ class Tracer: print r' *%s = new Wrap%s((%s *) *%s);' % (out.name, iface.name, iface.name, out.name) print r' }' print r' else {' - print r' os::log("apitrace: warning: %s: unknown REFIID {0x%08lX,0x%04X,0x%04X,{0x%02X,0x%02X,0x%02X,0x%02X,0x%02X,0x%02X,0x%02X,0x%02X}}\n",' - print r' __FUNCTION__,' + print r' os::log("apitrace: warning: %s::%s: unknown IID {0x%08lX,0x%04X,0x%04X,{0x%02X,0x%02X,0x%02X,0x%02X,0x%02X,0x%02X,0x%02X,0x%02X}}\n",' + print r' "%s", "%s",' % (interface.name, method.name) print r' %s.Data1, %s.Data2, %s.Data3,' % (riid.name, riid.name, riid.name) print r' %s.Data4[0],' % (riid.name,) print r' %s.Data4[1],' % (riid.name,)