From: Florent Kermarrec Date: Thu, 22 Jun 2017 08:33:08 +0000 (+0200) Subject: soc/tools: fix debug prints of comm_pcie X-Git-Tag: 24jan2021_ls180~1842 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c82c1d103f9f633ddc6c29887c7fbe096a60068b;p=litex.git soc/tools: fix debug prints of comm_pcie --- diff --git a/litex/soc/tools/remote/comm_pcie.py b/litex/soc/tools/remote/comm_pcie.py index 0fd3db18..e02b21db 100644 --- a/litex/soc/tools/remote/comm_pcie.py +++ b/litex/soc/tools/remote/comm_pcie.py @@ -29,7 +29,7 @@ class CommPCIeLinux: self.mmap.seek(addr + 4*i) value = int.from_bytes(self.mmap.read(4), "big") if self.debug: - print("RD {:08X} @ {:08X}".format(data, addr + 4*i)) + print("read {:08x} @ {:08x}".format(value, addr + 4*i)) if length is None: return value data.append(value) @@ -41,4 +41,4 @@ class CommPCIeLinux: for i, value in enumerate(data): self.mmap[addr + 4*i:addr + 4*(i + 1)] = value.to_bytes(4, byteorder="big") if self.debug: - print("WR {:08X} @ {:08X}".format(value, 4*(addr + i))) + print("write {:08x} @ {:08x}".format(value, addr + 4*i))