summaryrefslogtreecommitdiff
path: root/ppsthread.c
diff options
context:
space:
mode:
authorGary E. Miller <gem@rellim.com>2015-03-30 16:55:45 -0700
committerGary E. Miller <gem@rellim.com>2015-03-30 16:55:45 -0700
commit0e877afa8447b5b4e3d93537228735287ec6e97b (patch)
tree0d0e3da13ab1fb3c0a212b832ca712d584e17764 /ppsthread.c
parentde4ab6f2b513f723c6147b417f89d8c1f6e6321a (diff)
downloadgpsd-0e877afa8447b5b4e3d93537228735287ec6e97b.tar.gz
Fix segfault from botched log message.
Diffstat (limited to 'ppsthread.c')
-rw-r--r--ppsthread.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ppsthread.c b/ppsthread.c
index 2405afb3..54fd8b9b 100644
--- a/ppsthread.c
+++ b/ppsthread.c
@@ -593,8 +593,8 @@ static int get_edge_rfc2783( volatile struct pps_thread_t *thread_context,
timespec_str( &pi.assert_timestamp, ts_str1, sizeof(ts_str1) );
timespec_str( &pi.clear_timestamp, ts_str2, sizeof(ts_str2) );
thread_context->log_hook(thread_context, THREAD_PROG,
- "KPP:%s assert %s, sequence: %ld - using: %.10s\n"
- "clear %s, sequence: %ld\n",
+ "KPPS:%s assert %s, sequence: %lu, "
+ "clear %s, sequence: %lu - using: %.10s\n",
thread_context->devicename,
ts_str1,
(unsigned long) pi.assert_sequence,