From f2fb0b92ad95830276482c9a494999f583e2e997 Mon Sep 17 00:00:00 2001 From: Shane Smiskol Date: Wed, 19 Feb 2025 23:30:33 -0800 Subject: [PATCH] debug_fw_fingerprinting_offline.py: better formatting --- selfdrive/debug/debug_fw_fingerprinting_offline.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/selfdrive/debug/debug_fw_fingerprinting_offline.py b/selfdrive/debug/debug_fw_fingerprinting_offline.py index 2c6a946b6f..50a3751aa6 100755 --- a/selfdrive/debug/debug_fw_fingerprinting_offline.py +++ b/selfdrive/debug/debug_fw_fingerprinting_offline.py @@ -36,7 +36,7 @@ def main(route: str | None, addrs: list[int]): if msg.logMonoTime != prev_mono_time: print() prev_mono_time = msg.logMonoTime - print(f"{msg.which():>7}: rxaddr={can.address}, bus={can.src}, {round((msg.logMonoTime - start_mono_time) * 1e-6, 2)} ms, " + + print(f"{msg.which():>7}: rxaddr={can.address}, bus={str(can.src) + ',':<4} {round((msg.logMonoTime - start_mono_time) * 1e-6)} ms, " + f"0x{can.dat.hex()}, {can.dat}, {len(can.dat)=}")