diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2014-09-12 00:11:29 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2014-09-12 00:11:29 -0400 |
commit | 51b6b93201b1e955fe0310b569ded0514c50b0d5 (patch) | |
tree | 15b5c3a3f63ef52cc0d85dbc5b06a0d27f0a9d4c /drivers.c | |
parent | 3748ed40b6784b1905492e70b33b5d7ce296fa08 (diff) | |
download | gpsd-51b6b93201b1e955fe0310b569ded0514c50b0d5.tar.gz |
Magic-number elimination. All regression tests pass.
Diffstat (limited to 'drivers.c')
-rw-r--r-- | drivers.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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, |