From c457b6b283427e2c2ba15a58487ee0b522209e47 Mon Sep 17 00:00:00 2001 From: Jonathan Hui Date: Sat, 7 Feb 2026 19:27:22 -0800 Subject: [PATCH] [pktverify] remove excessive print output in Bytes comparison (#12391) This commit removes a debug print statement in the Bytes.__eq__ method that was causing excessive output to stderr during packet verification. The print statement was logging every byte comparison, leading to cluttered logs and potentially impacting performance or causing issues with log analysis. - Removed print statement from Bytes.__eq__ in tests/scripts/thread-cert/pktverify/bytes.py. --- tests/scripts/thread-cert/pktverify/bytes.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tests/scripts/thread-cert/pktverify/bytes.py b/tests/scripts/thread-cert/pktverify/bytes.py index c64271739..0ccdbfa0c 100644 --- a/tests/scripts/thread-cert/pktverify/bytes.py +++ b/tests/scripts/thread-cert/pktverify/bytes.py @@ -124,9 +124,7 @@ class Bytes(bytearray): elif not isinstance(other, Bytes): other = self.__class__(other) - eq = super().__eq__(other) - print("[%r %s %r]" % (self, "==" if eq else "!=", other), file=sys.stderr) - return eq + return super().__eq__(other) if __name__ == '__main__':