summaryrefslogtreecommitdiff
path: root/devtools/ais.py
diff options
context:
space:
mode:
authorChristian Gagneraud <cgagneraud@techworks.ie>2012-06-01 18:15:30 +0100
committerChristian Gagneraud <chris@techworks.ie>2012-06-20 10:05:40 +0100
commit13058fdfecf9ce0dd992162fa03645187946f4ca (patch)
treec6b2660a4ddaa03632d129437b7829ce6252cdb1 /devtools/ais.py
parenta468db2c9ca14c04f88a9e010bb6fdc10717c253 (diff)
downloadgpsd-13058fdfecf9ce0dd992162fa03645187946f4ca.tar.gz
[AIS] ais.py: fix bad checksum error message
Diffstat (limited to 'devtools/ais.py')
-rwxr-xr-xdevtools/ais.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/devtools/ais.py b/devtools/ais.py
index 69f18e1d..17421e7a 100755
--- a/devtools/ais.py
+++ b/devtools/ais.py
@@ -1086,7 +1086,7 @@ def packet_scanner(source):
raise AISUnpackingException(lc, "checksum", crc)
if csum != crc:
if skiperr:
- sys.stderr.write("%d: bad checksum %s, expecting %s: %s\n" % (lc, csum, `crc`, line.strip()))
+ sys.stderr.write("%d: bad checksum %s, expecting %s: %s\n" % (lc, `crc`, csum, line.strip()))
well_formed = False
else:
raise AISUnpackingException(lc, "checksum", crc)