mirror of
https://github.com/romanz/amodem.git
synced 2026-03-17 23:26:01 +08:00
framing: use '%08x' for CRC-32 logging
This commit is contained in:
@@ -26,8 +26,10 @@ class Checksum(object):
|
||||
payload = data[self.size:]
|
||||
expected = _checksum_func(payload)
|
||||
if received != expected:
|
||||
log.warning('Invalid checksum: %04x != %04x', received, expected)
|
||||
log.warning('Invalid checksum: %08x != %08x', received, expected)
|
||||
raise ValueError('Invalid checksum')
|
||||
else:
|
||||
log.debug('Good checksum: %08x', received)
|
||||
return payload
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user