diff options
author | Chris Kuethe <chris.kuethe@gmail.com> | 2006-11-25 23:12:24 +0000 |
---|---|---|
committer | Chris Kuethe <chris.kuethe@gmail.com> | 2006-11-25 23:12:24 +0000 |
commit | 5d52283cd20793e3dd3590865d3660ec161c9fb3 (patch) | |
tree | 9099b4a5691f88562c07f0839bb2849efb0ed03d /packet.c | |
parent | 26ae5337adaebbf0a697110c2422f0e1bdd7eec1 (diff) | |
download | gpsd-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.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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); |