diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2013-11-12 17:52:41 -0500 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2013-11-12 17:52:41 -0500 |
commit | 4b1c6ecccb0a1dc155f6fe8c40d3c353b79c09a4 (patch) | |
tree | fb2f432b1892ef40c14b562708982e57ab937ffe /driver_geostar.c | |
parent | 25c55a4c7a4ed769ac10073fb65466f31305d305 (diff) | |
download | gpsd-4b1c6ecccb0a1dc155f6fe8c40d3c353b79c09a4.tar.gz |
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.
Diffstat (limited to 'driver_geostar.c')
-rw-r--r-- | driver_geostar.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/driver_geostar.c b/driver_geostar.c index a5eb1447..fbe3f9f5 100644 --- a/driver_geostar.c +++ b/driver_geostar.c @@ -68,7 +68,8 @@ static int geostar_write(struct gps_device_t *session, session->msgbuflen = len * 4; - gpsd_report(session->context->debug, LOG_IO, "Sent GeoStar packet id 0x%x\n", id); + gpsd_report(session->context->debug, LOG_DATA, + "Sent GeoStar packet id 0x%x\n", id); if (gpsd_write(session, session->msgbuf, session->msgbuflen) != (ssize_t) session->msgbuflen) return -1; @@ -159,7 +160,7 @@ static gps_mask_t geostar_analyze(struct gps_device_t *session) (void)snprintf(session->gpsdata.tag, sizeof(session->gpsdata.tag), "ID%02x", id); - gpsd_report(session->context->debug, LOG_IO, + gpsd_report(session->context->debug, LOG_DATA, "GeoStar packet id 0x%02x length %d: %s\n", id, len, buf2); session->cycle_end_reliable = true; |