From ad2abb298af730cbdebf77c749db936bb2e3f621 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Thu, 31 Mar 2011 12:12:17 -0400 Subject: 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. --- driver_zodiac.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'driver_zodiac.c') diff --git a/driver_zodiac.c b/driver_zodiac.c index ef763759..92b5ced8 100644 --- a/driver_zodiac.c +++ b/driver_zodiac.c @@ -204,12 +204,12 @@ static gps_mask_t handle1000(struct gps_device_t *session) TIME_SET | PPSTIME_IS | LATLON_SET | ALTITUDE_SET | CLIMB_SET | SPEED_SET | TRACK_SET | STATUS_SET | MODE_SET; gpsd_report(LOG_DATA, - "1000: time=%.2f lat=%.2f lon=%.2f alt=%.2f track=%.2f speed=%.2f climb=%.2f mode=%d status=%d mask=%s\n", + "1000: time=%.2f lat=%.2f lon=%.2f alt=%.2f track=%.2f speed=%.2f climb=%.2f mode=%d status=%d\n", session->newdata.time, session->newdata.latitude, session->newdata.longitude, session->newdata.altitude, session->newdata.track, session->newdata.speed, session->newdata.climb, session->newdata.mode, - session->gpsdata.status, gps_maskdump(mask)); + session->gpsdata.status); return mask; } -- cgit v1.2.1