summaryrefslogtreecommitdiff
path: root/subframe.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 /subframe.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 'subframe.c')
-rw-r--r--subframe.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/subframe.c b/subframe.c
index 7f6181f9..afcd716a 100644
--- a/subframe.c
+++ b/subframe.c
@@ -44,7 +44,7 @@ gps_mask_t gpsd_interpret_subframe_raw(struct gps_device_t *session,
* word is inverted.
*
*/
- gpsd_report(session->context->debug, LOG_IO,
+ gpsd_report(session->context->debug, LOG_DATA,
"50B: gpsd_interpret_subframe_raw: "
"%08x %08x %08x %08x %08x %08x %08x %08x %08x %08x\n",
words[0], words[1], words[2], words[3], words[4],
@@ -55,7 +55,7 @@ gps_mask_t gpsd_interpret_subframe_raw(struct gps_device_t *session,
words[0] ^= 0x3fffffc0; /* invert */
} else if (preamble != 0x74) {
/* strangely this is very common, so don't log it */
- gpsd_report(session->context->debug, LOG_IO,
+ gpsd_report(session->context->debug, LOG_DATA,
"50B: gpsd_interpret_subframe_raw: bad preamble 0x%x\n",
preamble);
return 0;
@@ -72,7 +72,7 @@ gps_mask_t gpsd_interpret_subframe_raw(struct gps_device_t *session,
}
parity = (uint32_t)isgps_parity((isgps30bits_t)words[i]);
if (parity != (words[i] & 0x3f)) {
- gpsd_report(session->context->debug, LOG_IO,
+ gpsd_report(session->context->debug, LOG_DATA,
"50B: gpsd_interpret_subframe_raw parity fail words[%d] 0x%x != 0x%x\n",
i, parity, (words[i] & 0x1));
return 0;
@@ -164,7 +164,7 @@ gps_mask_t gpsd_interpret_subframe(struct gps_device_t *session,
/* FIXME!! I really doubt this is Big Endian compatible */
uint8_t preamble;
struct subframe_t *subp = &session->gpsdata.subframe;
- gpsd_report(session->context->debug, LOG_IO,
+ gpsd_report(session->context->debug, LOG_DATA,
"50B: gpsd_interpret_subframe: (%d) "
"%06x %06x %06x %06x %06x %06x %06x %06x %06x %06x\n",
tSVID, words[0], words[1], words[2], words[3], words[4],