diff options
author | Chris Kuethe <chris.kuethe@gmail.com> | 2008-08-03 07:17:25 +0000 |
---|---|---|
committer | Chris Kuethe <chris.kuethe@gmail.com> | 2008-08-03 07:17:25 +0000 |
commit | 3ca39fe6c88d372412a6f1812568c42f4abe3ff9 (patch) | |
tree | c4675d676d2dda35a4be08d86765e5a80cacb8f7 /packet.c | |
parent | 226179229607aa67c646205f9e4dc31e750c868c (diff) | |
download | gpsd-3ca39fe6c88d372412a6f1812568c42f4abe3ff9.tar.gz |
whitespace fixes
Diffstat (limited to 'packet.c')
-rw-r--r-- | packet.c | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -1086,15 +1086,16 @@ void packet_parse(struct gps_packet_t *lexer) #endif /* TSIP_ENABLE || GARMIN_ENABLE */ #ifdef RTCM104V3_ENABLE else if (lexer->state == RTCM3_RECOGNIZED) { - if (crc24q_check(lexer->inbuffer, + if (crc24q_check(lexer->inbuffer, lexer->inbufptr-lexer->inbuffer)) { packet_accept(lexer, RTCM3_PACKET); packet_discard(lexer); } else { - gpsd_report(LOG_IO, "RTCM3 data checksum failure, %0x against %02x %02x %02x\n", - crc24q_hash(lexer->inbuffer, + gpsd_report(LOG_IO, "RTCM3 data checksum failure, " + "%0x against %02x %02x %02x\n", + crc24q_hash(lexer->inbuffer, lexer->inbufptr-lexer->inbuffer - 3), - lexer->inbufptr[-3], + lexer->inbufptr[-3], lexer->inbufptr[-2], lexer->inbufptr[-1]); lexer->state = GROUND_STATE; |