m1n1.trace: Add space after CPU number in PrintTracer logs

This makes the logs align properly with other trace logs.

Signed-off-by: Asahi Lina <lina@asahilina.net>
This commit is contained in:
Asahi Lina 2022-04-16 19:03:58 +09:00
parent 6c57d3ded9
commit 8b10324815

View file

@ -155,7 +155,7 @@ class PrintTracer(Tracer):
dev, zone = self.device_addr_tbl.lookup(evt.addr) dev, zone = self.device_addr_tbl.lookup(evt.addr)
t = "W" if evt.flags.WRITE else "R" t = "W" if evt.flags.WRITE else "R"
m = "+" if evt.flags.MULTI else " " m = "+" if evt.flags.MULTI else " "
logline = (f"[cpu{evt.flags.CPU}][0x{evt.pc:016x}] MMIO: {t}.{1<<evt.flags.WIDTH:<2}{m} " + logline = (f"[cpu{evt.flags.CPU}] [0x{evt.pc:016x}] MMIO: {t}.{1<<evt.flags.WIDTH:<2}{m} " +
f"0x{evt.addr:x} ({dev}, offset {evt.addr - zone.start:#04x}) = 0x{evt.data:x}") f"0x{evt.addr:x} ({dev}, offset {evt.addr - zone.start:#04x}) = 0x{evt.data:x}")
print(logline) print(logline)
if self.log_file: if self.log_file: