diff options
author | Gary E. Miller <gem@rellim.com> | 2013-11-26 12:11:06 -0800 |
---|---|---|
committer | Gary E. Miller <gem@rellim.com> | 2013-11-26 12:11:06 -0800 |
commit | f4fdd22c10ee90fd6b645a43f9dd013458f762df (patch) | |
tree | 3dc64209a02937c275e1fd7aaf897fc60f557156 /ppsthread.c | |
parent | 94f5efb20408b88c45f36a7b90ce790eea118001 (diff) | |
download | gpsd-f4fdd22c10ee90fd6b645a43f9dd013458f762df.tar.gz |
Fix some PPS logging.
Diffstat (limited to 'ppsthread.c')
-rw-r--r-- | ppsthread.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/ppsthread.c b/ppsthread.c index 96551fc4..d3ea073a 100644 --- a/ppsthread.c +++ b/ppsthread.c @@ -24,6 +24,9 @@ * serial port, but details have not yet been tested and documented * here. * + * Note that for easy debugging all logging from the file is prefixed + * with PPS or KPPS. + * * To use the thread manager, you need to first fill in the two * thread_* methods in the session structure and/or the pps_hook in * the context structure. Then you can call pps_thread_activate() and @@ -184,7 +187,7 @@ static int init_kernel_pps(struct gps_device_t *session) #endif /* assert(ret >= 0); */ gpsd_report(session->context->debug, LOG_INF, - "RFC2783 fd is %d\n", + "KPPS RFC2783 fd is %d\n", ret); /* RFC 2783 implies the time_pps_setcap() needs priviledges * @@ -606,13 +609,15 @@ static /*@null@*/ void *gpsd_ppsmonitor(void *arg) } #if defined(HAVE_SYS_TIMEPPS_H) if (session->kernelpps_handle > 0) { - gpsd_report(session->context->debug, LOG_PROG, "PPS descriptor cleaned up\n"); + gpsd_report(session->context->debug, LOG_PROG, + "PPS descriptor cleaned up\n"); (void)time_pps_destroy(session->kernelpps_handle); } #endif if (session->thread_wrap_hook != NULL) session->thread_wrap_hook(session); - gpsd_report(session->context->debug, LOG_PROG, "PPS gpsd_ppsmonitor exited.\n"); + gpsd_report(session->context->debug, LOG_PROG, + "PPS gpsd_ppsmonitor exited.\n"); return NULL; } /*@+mustfreefresh +type +unrecog +branchstate@*/ |