summaryrefslogtreecommitdiff
path: root/ppsthread.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2016-04-25 09:48:37 -0400
committerEric S. Raymond <esr@thyrsus.com>2016-04-25 09:50:09 -0400
commit31577e22e33ce51eed4506fce38b4a60b32fc85c (patch)
tree2077183b50f247dd98ac34255cd6bc9f5a0b8548 /ppsthread.c
parent10526aec7c10ee41f314a3863af73e3250b82629 (diff)
downloadgpsd-31577e22e33ce51eed4506fce38b4a60b32fc85c.tar.gz
Add message to nail down timing of /dev/ppsX opening vs. privilege drop
Diffstat (limited to 'ppsthread.c')
-rw-r--r--ppsthread.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ppsthread.c b/ppsthread.c
index 7a82cceb..cf4665c5 100644
--- a/ppsthread.c
+++ b/ppsthread.c
@@ -268,7 +268,8 @@ static int init_kernel_pps(struct inner_context_t *inner_context)
char errbuf[BUFSIZ] = "unknown error";
(void)strerror_r(errno, errbuf, sizeof(errbuf));
pps_thread->log_hook(pps_thread, THREAD_INF,
- "KPPS:%s cannot open %s: %s\n",
+ "KPPS:%s running as %d/, cannot open %s: %s\n",
+ getuid(), geteuid(),
pps_thread->devicename,
path, errbuf);
return -1;