summaryrefslogtreecommitdiff
path: root/driver_proto.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2011-03-31 12:12:17 -0400
committerEric S. Raymond <esr@thyrsus.com>2011-03-31 12:12:17 -0400
commitad2abb298af730cbdebf77c749db936bb2e3f621 (patch)
treeea309fda4fca5c0130f00a74e44a1c6373cf3591 /driver_proto.c
parent4b758aa04224d588415f04cd8975d1e559a219e1 (diff)
downloadgpsd-ad2abb298af730cbdebf77c749db936bb2e3f621.tar.gz
gps_maskdump() has been a CPU hog. Drastically reduce the number of calls...
...and guard them with debug level so they won't be done when the output would never be shipped anywhere.
Diffstat (limited to 'driver_proto.c')
-rw-r--r--driver_proto.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/driver_proto.c b/driver_proto.c
index 3f298a3b..6918cd58 100644
--- a/driver_proto.c
+++ b/driver_proto.c
@@ -120,14 +120,13 @@ _proto__msg_navsol(struct gps_device_t *session, unsigned char *buf, size_t data
* the fields it potentially set and the transfer mask. Doing this
* makes it relatively easy to track down data-management problems.
*/
- gpsd_report(LOG_DATA, "NAVSOL: time=%.2f, lat=%.2f lon=%.2f alt=%.2f mode=%d status=%d mask=%s\n",
+ gpsd_report(LOG_DATA, "NAVSOL: time=%.2f, lat=%.2f lon=%.2f alt=%.2f mode=%d status=%d\n",
session->newdata.time,
session->newdata.latitude,
session->newdata.longitude,
session->newdata.altitude,
session->newdata.mode,
- session->gpsdata.status,
- gps_maskdump(mask));
+ session->gpsdata.status);
return mask;
}