summaryrefslogtreecommitdiff
path: root/gpsd.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2007-12-10 01:56:49 +0000
committerEric S. Raymond <esr@thyrsus.com>2007-12-10 01:56:49 +0000
commitcbe26e0fb1ab89120356bf11e0997bd2b0bf817f (patch)
treedd11bee29aeac8252f396f4a8a6ae07eb4652657 /gpsd.c
parent046d89ba46d89dac451bc74772ceb2452805a602 (diff)
downloadgpsd-cbe26e0fb1ab89120356bf11e0997bd2b0bf817f.tar.gz
Log the transfer mask describing what data gets moved from devices...
...to user fixbuffers, this is useful in pinpointing data-management problems.
Diffstat (limited to 'gpsd.c')
-rw-r--r--gpsd.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gpsd.c b/gpsd.c
index 05ea1f13..20ccad76 100644
--- a/gpsd.c
+++ b/gpsd.c
@@ -1667,6 +1667,8 @@ int main(int argc, char *argv[])
/* don't downgrade mode if holding previous fix */
if (sub->fixbuffer.mode > sub->device->gpsdata.fix.mode)
changed &=~ MODE_SET;
+ gpsd_report(LOG_PROG,
+ "transfer mask: %02x\n", changed);
gps_merge_fix(&sub->fixbuffer,
changed,
&sub->device->gpsdata.fix);