diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2015-01-27 15:18:01 -0500 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2015-01-27 15:52:59 -0500 |
commit | 6579023bc37dd3eebce9460773a6c654eb06d226 (patch) | |
tree | a41e278a501b692956ae4207fec41a598b9d82fc /ppsthread.c | |
parent | 74109d28b2a099b4f505a62e897d1f14c1d8a9e5 (diff) | |
download | gpsd-6579023bc37dd3eebce9460773a6c654eb06d226.tar.gz |
Make PPS delivery troubleshooting a bit easier. All regression tests pass.
Diffstat (limited to 'ppsthread.c')
-rw-r--r-- | ppsthread.c | 5 |
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; |