summaryrefslogtreecommitdiff
path: root/ppsthread.c
diff options
context:
space:
mode:
authorHaakan Johansson <f96hajo@chalmers.se>2016-03-12 18:51:32 +0100
committerEric S. Raymond <esr@thyrsus.com>2016-03-15 19:48:01 -0400
commitcc0de7d1a17958dd70da5dcd250826976c288dee (patch)
tree2df6540f07dd48ba21aa9bf2e187d249e241d416 /ppsthread.c
parent9059936571cf473199df6e35cddc0b1874825246 (diff)
downloadgpsd-cc0de7d1a17958dd70da5dcd250826976c288dee.tar.gz
cycle and duration became long long in ebb1d9da, use %lld.
Diffstat (limited to 'ppsthread.c')
-rw-r--r--ppsthread.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ppsthread.c b/ppsthread.c
index b05da061..4f53e185 100644
--- a/ppsthread.c
+++ b/ppsthread.c
@@ -773,7 +773,7 @@ static void *gpsd_ppsmonitor(void *arg)
timespec_str( &clock_ts, ts_str1, sizeof(ts_str1) );
thread_context->log_hook(thread_context, THREAD_PROG,
- "TPPS:%s %.10s cycle: %d, duration: %d @ %s\n",
+ "TPPS:%s %.10s, cycle: %lld, duration: %lld @ %s\n",
thread_context->devicename, edge_str, cycle, duration,
ts_str1);
@@ -840,7 +840,7 @@ static void *gpsd_ppsmonitor(void *arg)
timespec_str( &clock_ts_kpps, ts_str1, sizeof(ts_str1) );
thread_context->log_hook(thread_context, THREAD_PROG,
- "KPPS:%s %.10s cycle: %7d, duration: %7d @ %s\n",
+ "KPPS:%s %.10s cycle: %7lld, duration: %7lld @ %s\n",
thread_context->devicename,
edge_str,
cycle_kpps, duration_kpps, ts_str1);
@@ -898,7 +898,7 @@ static void *gpsd_ppsmonitor(void *arg)
state_last = state;
timespec_str( &clock_ts, ts_str1, sizeof(ts_str1) );
thread_context->log_hook(thread_context, THREAD_PROG,
- "PPS:%s %.10s cycle: %7d, duration: %7d @ %s\n",
+ "PPS:%s %.10s cycle: %7lld, duration: %7lld @ %s\n",
thread_context->devicename,
edge_str,
cycle, duration, ts_str1);