mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-15 19:08:07 +00:00
print message size in _pprint
This commit is contained in:
parent
c9a348d4a9
commit
d629a76689
3
trezorlib/client.py
Executable file → Normal file
3
trezorlib/client.py
Executable file → Normal file
@ -135,7 +135,8 @@ class TrezorClient(object):
|
|||||||
return ret
|
return ret
|
||||||
|
|
||||||
def _pprint(self, msg):
|
def _pprint(self, msg):
|
||||||
return "<%s>:\n%s" % (msg.__class__.__name__, msg)
|
ser = msg.SerializeToString()
|
||||||
|
return "<%s> (%d bytes):\n%s" % (msg.__class__.__name__, len(ser), msg)
|
||||||
|
|
||||||
def setup_debuglink(self, button=None, pin_correct=False):
|
def setup_debuglink(self, button=None, pin_correct=False):
|
||||||
self.debug_button = button
|
self.debug_button = button
|
||||||
|
Loading…
Reference in New Issue
Block a user