summaryrefslogtreecommitdiff
path: root/driver_sirf.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2013-11-12 17:52:41 -0500
committerEric S. Raymond <esr@thyrsus.com>2013-11-12 17:52:41 -0500
commit4b1c6ecccb0a1dc155f6fe8c40d3c353b79c09a4 (patch)
treefb2f432b1892ef40c14b562708982e57ab937ffe /driver_sirf.c
parent25c55a4c7a4ed769ac10073fb65466f31305d305 (diff)
downloadgpsd-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_sirf.c')
-rw-r--r--driver_sirf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/driver_sirf.c b/driver_sirf.c
index 87705e22..a2eaa752 100644
--- a/driver_sirf.c
+++ b/driver_sirf.c
@@ -241,7 +241,7 @@ static bool sirf_write(struct gps_device_t *session, unsigned char *msg)
msg[len + 5] = (unsigned char)(crc & 0x00ff);
gpsd_report(session->context->debug,
- LOG_IO, "SiRF: Writing control type %02x:\n", msg[4]);
+ LOG_DATA, "SiRF: Writing control type %02x:\n", msg[4]);
ok = (gpsd_write(session, (const char *)msg, len+8) == (ssize_t) (len+8));
return (ok);
}
@@ -515,7 +515,7 @@ static gps_mask_t sirf_msg_navdata(struct gps_device_t *session,
words[i] = (uint32_t)getbeu32(buf, 4 * i + 3);
}
- gpsd_report(session->context->debug, LOG_IO,
+ gpsd_report(session->context->debug, LOG_DATA,
"SiRF: NavData chan %u svid %u\n",chan,svid);
#ifdef RECONFIGURE_ENABLE