[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.
This commit is contained in:
Jonathan Hui
2026-02-07 19:27:22 -08:00
committed by GitHub
parent 52bd082596
commit c457b6b283
+1 -3
View File
@@ -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__':