From 029bfcc12ce5cb756c3fa0fb89e2e701f2977f46 Mon Sep 17 00:00:00 2001 From: RedBearAK <64876997+RedBearAK@users.noreply.github.com> Date: Sat, 5 Oct 2024 18:45:11 -0800 Subject: [PATCH] Visually tag filtered state events in log output --- wlroots-dev/query_cosmic_topl_mgmt_protocol.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wlroots-dev/query_cosmic_topl_mgmt_protocol.py b/wlroots-dev/query_cosmic_topl_mgmt_protocol.py index c1dd361..40338d1 100755 --- a/wlroots-dev/query_cosmic_topl_mgmt_protocol.py +++ b/wlroots-dev/query_cosmic_topl_mgmt_protocol.py @@ -138,11 +138,11 @@ def handle_state_change(self, handle, states_bytes): # Filter out the all-zeroes state (reset event?) before converting if states_bytes == b'': print() - print(f"Received empty bytes value state event, ignoring: {states_bytes}") + print(f">>>> Received empty bytes value state event, ignoring: {states_bytes}") return elif states_bytes == b'\x00\x00\x00\x00': print() - print(f"Received all-zeroes 4-byte state event, ignoring: {states_bytes}") + print(f">>>> Received all-zeroes 4-byte state event, ignoring: {states_bytes}") return # Process states_bytes as an array of 4-byte (32-bit) integers