summaryrefslogtreecommitdiff
path: root/ppsthread.c
diff options
context:
space:
mode:
authorGary E. Miller <gem@rellim.com>2015-03-25 16:27:39 -0700
committerGary E. Miller <gem@rellim.com>2015-03-25 16:27:39 -0700
commit2b726979b94c802c3b43d38dd16fe895b1925808 (patch)
treefe5172a071daa303920e2a9f0d907fba130c99a7 /ppsthread.c
parentd277c4c4044c0e39059fcfaf80cfbd92c0d21be8 (diff)
downloadgpsd-2b726979b94c802c3b43d38dd16fe895b1925808.tar.gz
add yet a tad more PPS trace logging.
Diffstat (limited to 'ppsthread.c')
-rw-r--r--ppsthread.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/ppsthread.c b/ppsthread.c
index 0db019ae..35067848 100644
--- a/ppsthread.c
+++ b/ppsthread.c
@@ -715,6 +715,9 @@ static /*@null@*/ void *gpsd_ppsmonitor(void *arg)
ret = get_edge_tiocmiwait( thread_context, &clock_ts_tio,
&state_tio, &last_fixtime );
if ( 0 != ret ) {
+ thread_context->log_hook(thread_context, THREAD_PROG,
+ "PPS:%s die: TIOCMIWAIT Error\n",
+ thread_context->devicename);
break;
}
@@ -780,6 +783,9 @@ static /*@null@*/ void *gpsd_ppsmonitor(void *arg)
if ( -1 == ret ) {
/* error, so break */
+ thread_context->log_hook(thread_context, THREAD_PROG,
+ "PPS:%s die: RFC2783 Error\n",
+ thread_context->devicename);
break;
}
@@ -818,6 +824,9 @@ static /*@null@*/ void *gpsd_ppsmonitor(void *arg)
if ( not_a_tty && !pps_canwait ) {
/* uh, oh, no TIOMCIWAIT, nor RFC2783, die */
+ thread_context->log_hook(thread_context, THREAD_PROG,
+ "PPS:%s die: no TIOMCIWAIT, nor RFC2783 CANWAIT\n",
+ thread_context->devicename);
break;
}