summaryrefslogtreecommitdiff
path: root/packet.c
diff options
context:
space:
mode:
authorChris Kuethe <chris.kuethe@gmail.com>2006-11-25 23:12:24 +0000
committerChris Kuethe <chris.kuethe@gmail.com>2006-11-25 23:12:24 +0000
commit5d52283cd20793e3dd3590865d3660ec161c9fb3 (patch)
tree9099b4a5691f88562c07f0839bb2849efb0ed03d /packet.c
parent26ae5337adaebbf0a697110c2422f0e1bdd7eec1 (diff)
downloadgpsd-5d52283cd20793e3dd3590865d3660ec161c9fb3.tar.gz
move a log statement so that there is a clear indication of whether a
TSIP packet is rejected or not
Diffstat (limited to 'packet.c')
-rw-r--r--packet.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/packet.c b/packet.c
index 4fe569ff..62e4eebb 100644
--- a/packet.c
+++ b/packet.c
@@ -778,10 +778,6 @@ ssize_t packet_parse(struct gps_device_t *session, size_t fix)
/* look for terminating ETX */
if ((session->inbuffer[n-1]) != ETX)
goto not_tsip;
- /* Debug */
- gpsd_report(LOG_IO,
- "TSIP pkt_id = %#02x, n= %#02x, len= %#02x\n",
- pkt_id, n, len);
/*@ -ifempty */
if ((0x41 == pkt_id) && (0x0c == len))
/* pass */;
@@ -811,6 +807,10 @@ ssize_t packet_parse(struct gps_device_t *session, size_t fix)
pkt_id, n, len);
goto not_tsip;
}
+ /* Debug */
+ gpsd_report(LOG_IO,
+ "TSIP pkt_id = %#02x, n= %#02x, len= %#02x\n",
+ pkt_id, n, len);
/*@ -charint +ifempty @*/
packet_accept(session, TSIP_PACKET);
packet_discard(session);