From 4b1c6ecccb0a1dc155f6fe8c40d3c353b79c09a4 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Tue, 12 Nov 2013 17:52:41 -0500 Subject: Reduce gpsd log verbosity a lot. Way too much logging was happening at LOG_IO level, which is intended for watching data traffic in and out of the daemon rather than all the minutiae of data analysis - that's LOG_DATA. Also, LOG_DATA gets pushed down two levels. The effect is that -D 5 means exactly what it did, but for purposes other than driver debugging -D 4 now suffices. --- driver_tsip.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'driver_tsip.c') diff --git a/driver_tsip.c b/driver_tsip.c index bb878de8..a8af1722 100644 --- a/driver_tsip.c +++ b/driver_tsip.c @@ -55,7 +55,8 @@ static int tsip_write(struct gps_device_t *session, *ep++ = '\x03'; session->msgbuflen = (size_t) (ep - session->msgbuf); /*@ -charint @*/ - gpsd_report(session->context->debug, LOG_IO, "Sent TSIP packet id 0x%02x\n", id); + gpsd_report(session->context->debug, LOG_DATA, + "Sent TSIP packet id 0x%02x\n", id); if (gpsd_write(session, session->msgbuf, session->msgbuflen) != (ssize_t) session->msgbuflen) return -1; @@ -162,7 +163,7 @@ static gps_mask_t tsip_parse_input(struct gps_device_t *session) (void)snprintf(session->gpsdata.tag, sizeof(session->gpsdata.tag), "ID%02x", id = (unsigned)session->packet.outbuffer[1]); - gpsd_report(session->context->debug, LOG_IO, + gpsd_report(session->context->debug, LOG_DATA, "TSIP packet id 0x%02x length %d: %s\n", id, len, buf2); (void)time(&now); -- cgit v1.2.1