From c82c1d103f9f633ddc6c29887c7fbe096a60068b Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Thu, 22 Jun 2017 10:33:08 +0200 Subject: [PATCH] soc/tools: fix debug prints of comm_pcie --- litex/soc/tools/remote/comm_pcie.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/litex/soc/tools/remote/comm_pcie.py b/litex/soc/tools/remote/comm_pcie.py index 0fd3db18c..e02b21db5 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))