summaryrefslogtreecommitdiff
path: root/packet.c
diff options
context:
space:
mode:
authorChris Kuethe <chris.kuethe@gmail.com>2008-08-03 07:17:25 +0000
committerChris Kuethe <chris.kuethe@gmail.com>2008-08-03 07:17:25 +0000
commit3ca39fe6c88d372412a6f1812568c42f4abe3ff9 (patch)
treec4675d676d2dda35a4be08d86765e5a80cacb8f7 /packet.c
parent226179229607aa67c646205f9e4dc31e750c868c (diff)
downloadgpsd-3ca39fe6c88d372412a6f1812568c42f4abe3ff9.tar.gz
whitespace fixes
Diffstat (limited to 'packet.c')
-rw-r--r--packet.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/packet.c b/packet.c
index e4801d0c..f829ad09 100644
--- a/packet.c
+++ b/packet.c
@@ -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;