diff options
author | Gary E. Miller <gem@rellim.com> | 2016-05-05 18:35:23 -0700 |
---|---|---|
committer | Gary E. Miller <gem@rellim.com> | 2016-05-05 18:35:23 -0700 |
commit | 72b5a6e712ff09e3fa573de63aa7b7297fcb03c6 (patch) | |
tree | 492b65523656525bcd35d47898c659899184cac7 /ppsthread.c | |
parent | e16b6dad0ae5f823e83ba97c7bc984ef6d244b5b (diff) | |
download | gpsd-72b5a6e712ff09e3fa573de63aa7b7297fcb03c6.tar.gz |
Tweak log messages for when timepps.h not found.
This might solve a common problem.
Diffstat (limited to 'ppsthread.c')
-rw-r--r-- | ppsthread.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/ppsthread.c b/ppsthread.c index d4a6f347..936e8a93 100644 --- a/ppsthread.c +++ b/ppsthread.c @@ -1170,13 +1170,16 @@ void pps_thread_activate(volatile struct pps_thread_t *pps_thread) pps_thread->log_hook(pps_thread, THREAD_INF, "KPPS:%s kernel PPS will be used\n", pps_thread->devicename); - } else -#endif - { + } else { pps_thread->log_hook(pps_thread, THREAD_WARN, "KPPS:%s kernel PPS unavailable, PPS accuracy will suffer\n", pps_thread->devicename); } +#else + pps_thread->log_hook(pps_thread, THREAD_WARN, + "KPPS:%s no HAVE_SYS_TIMEPPS_H, PPS accuracy will suffer\n", + pps_thread->devicename); +#endif memset( &pt, 0, sizeof(pt)); retval = pthread_create(&pt, NULL, gpsd_ppsmonitor, (void *)&inner_context); |