diff options
author | Gary E. Miller <gem@rellim.com> | 2015-03-30 16:55:45 -0700 |
---|---|---|
committer | Gary E. Miller <gem@rellim.com> | 2015-03-30 16:55:45 -0700 |
commit | 0e877afa8447b5b4e3d93537228735287ec6e97b (patch) | |
tree | 0d0e3da13ab1fb3c0a212b832ca712d584e17764 | |
parent | de4ab6f2b513f723c6147b417f89d8c1f6e6321a (diff) | |
download | gpsd-0e877afa8447b5b4e3d93537228735287ec6e97b.tar.gz |
Fix segfault from botched log message.
-rw-r--r-- | ppsthread.c | 4 |
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, |