soc/tools: fix debug prints of comm_pcie
authorFlorent Kermarrec <florent@enjoy-digital.fr>
Thu, 22 Jun 2017 08:33:08 +0000 (10:33 +0200)
committerFlorent Kermarrec <florent@enjoy-digital.fr>
Thu, 22 Jun 2017 08:33:08 +0000 (10:33 +0200)
litex/soc/tools/remote/comm_pcie.py

index 0fd3db18cdc617fc58f9fbbfb28fce6587928198..e02b21db555b2eeb381de6f79498bbf31876d424 100644 (file)
@@ -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))