Print TLP payloads in hex
This commit is contained in:
parent
667b5c42c5
commit
9f36acebc2
@ -563,7 +563,7 @@ class TLP(object):
|
||||
|
||||
def __repr__(self):
|
||||
return (
|
||||
('TLP(data=%s, ' % repr(self.data)) +
|
||||
('TLP(data=[%s], ' % ', '.join(hex(x) for x in self.data)) +
|
||||
('fmt=0x%x, ' % self.fmt) +
|
||||
('type=0x%x, ' % self.type) +
|
||||
('tc=0x%x, ' % self.tc) +
|
||||
|
@ -618,7 +618,7 @@ class TLP_us(TLP):
|
||||
|
||||
def __repr__(self):
|
||||
return (
|
||||
('TLP_us(data=%s, ' % repr(self.data)) +
|
||||
('TLP_us(data=[%s], ' % ', '.join(hex(x) for x in self.data)) +
|
||||
('fmt=0x%x, ' % self.fmt) +
|
||||
('type=0x%x, ' % self.type) +
|
||||
('tc=0x%x, ' % self.tc) +
|
||||
|
Loading…
x
Reference in New Issue
Block a user