From 9159a603456853f97db4af8488f4f08815c698f0 Mon Sep 17 00:00:00 2001 From: Haakan Johansson Date: Sat, 12 Mar 2016 18:51:32 +0100 Subject: [PATCH 1/3] cycle and duration became long long in ebb1d9da, use %lld. --- ppsthread.c | 6 +++--- 1 fil ändrad, 3 tillägg(+), 3 borttagningar(-) diff --git a/ppsthread.c b/ppsthread.c index b05da06..4f53e18 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); -- 1.7.10.4