From 7c058a52c9a01c5c081388797306f30b2bd21786 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Tue, 3 Mar 2015 10:44:05 +0100 Subject: [PATCH] com/spi: use .format in tb --- misoclib/com/spi/test/spi_master_tb.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/misoclib/com/spi/test/spi_master_tb.py b/misoclib/com/spi/test/spi_master_tb.py index 32abfd8e..3459a56f 100644 --- a/misoclib/com/spi/test/spi_master_tb.py +++ b/misoclib/com/spi/test/spi_master_tb.py @@ -77,8 +77,8 @@ class TB(Module): yield self.spi_slave.set_miso(0x123457) yield from spi_access(selfp, 8, 0x123457) - print("%08x" %self.spi_slave.get_mosi()) - print("%08x" %selfp.spi_master._miso.status) + print("{:08x}".format(self.spi_slave.get_mosi())) + print("{:08x}".format(selfp.spi_master._miso.status)) if __name__ == "__main__": run_simulation(TB(), ncycles=1000, vcd_name="my.vcd", keep_files=True) \ No newline at end of file -- 2.30.2