summaryrefslogtreecommitdiff
path: root/ppsthread.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2015-01-27 15:18:01 -0500
committerEric S. Raymond <esr@thyrsus.com>2015-01-27 15:52:59 -0500
commit6579023bc37dd3eebce9460773a6c654eb06d226 (patch)
treea41e278a501b692956ae4207fec41a598b9d82fc /ppsthread.c
parent74109d28b2a099b4f505a62e897d1f14c1d8a9e5 (diff)
downloadgpsd-6579023bc37dd3eebce9460773a6c654eb06d226.tar.gz
Make PPS delivery troubleshooting a bit easier. All regression tests pass.
Diffstat (limited to 'ppsthread.c')
-rw-r--r--ppsthread.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/ppsthread.c b/ppsthread.c
index e9212862..5e96aa4b 100644
--- a/ppsthread.c
+++ b/ppsthread.c
@@ -294,11 +294,14 @@ static /*@null@*/ void *gpsd_ppsmonitor(void *arg)
/* we are lucky to have TIOCMIWAIT, so wait for next edge */
#define PPS_LINE_TIOC (TIOCM_CD|TIOCM_CAR|TIOCM_RI|TIOCM_CTS)
if (ioctl(session->gpsdata.gps_fd, TIOCMIWAIT, PPS_LINE_TIOC) != 0) {
- gpsd_report(&session->context->errout, LOG_ERROR,
+ gpsd_report(&session->context->errout, LOG_WARN,
"PPS ioctl(TIOCMIWAIT) on %s failed: %d %.40s\n",
session->gpsdata.dev.path, errno, strerror(errno));
break;
}
+ gpsd_report(&session->context->errout, LOG_PROG,
+ "PPS ioctl(TIOCMIWAIT) on %s succeeded",
+ session->gpsdata.dev.path);
/* quick, grab a copy of last_fixtime before it changes */
last_fixtime_real = session->last_fixtime.real;
last_fixtime_clock = session->last_fixtime.clock;