summaryrefslogtreecommitdiff
path: root/drivers.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2014-09-12 00:11:29 -0400
committerEric S. Raymond <esr@thyrsus.com>2014-09-12 00:11:29 -0400
commit51b6b93201b1e955fe0310b569ded0514c50b0d5 (patch)
tree15b5c3a3f63ef52cc0d85dbc5b06a0d27f0a9d4c /drivers.c
parent3748ed40b6784b1905492e70b33b5d7ce296fa08 (diff)
downloadgpsd-51b6b93201b1e955fe0310b569ded0514c50b0d5.tar.gz
Magic-number elimination. All regression tests pass.
Diffstat (limited to 'drivers.c')
-rw-r--r--drivers.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers.c b/drivers.c
index aad00ed5..5537553a 100644
--- a/drivers.c
+++ b/drivers.c
@@ -1333,7 +1333,7 @@ static bool aivdm_decode(const char *buf, size_t buflen,
/* time to pass buffered-up data to where it's actually processed? */
if (ifrag == nfrags) {
if (debug >= LOG_INF) {
- size_t clen = (ais_context->bitlen + 7) / 8;
+ size_t clen = BITS_TO_BYTES(ais_context->bitlen);
gpsd_report(&session->context->errout, LOG_INF,
"AIVDM payload is %zd bits, %zd chars: %s\n",
ais_context->bitlen, clen,