summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--driver_sirf.c2
-rw-r--r--libgpsd_core.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/driver_sirf.c b/driver_sirf.c
index 469e2729..16ec74fe 100644
--- a/driver_sirf.c
+++ b/driver_sirf.c
@@ -1981,7 +1981,7 @@ gps_mask_t sirf_parse(struct gps_device_t * session, unsigned char *buf,
buf += 4;
len -= 8;
gpsd_log(&session->context->errout, LOG_RAW,
- "SiRF: Raw packet type %#02x len %lu\n", buf[0], len);
+ "SiRF: Raw packet type %#02x len %d\n", buf[0], len);
session->driver.sirf.lastid = buf[0];
/* could change if the set of messages we enable does */
diff --git a/libgpsd_core.c b/libgpsd_core.c
index 7e876ccf..098a3371 100644
--- a/libgpsd_core.c
+++ b/libgpsd_core.c
@@ -1548,7 +1548,7 @@ gps_mask_t gpsd_poll(struct gps_device_t *session)
if ((session->gpsdata.set & TIME_SET) != 0) {
if (session->newdata.time > time(NULL) + (60 * 60 * 24 * 365))
gpsd_log(&session->context->errout, LOG_WARN,
- "date (%,3f) more than a year in the future!\n",
+ "date (%.3f) more than a year in the future!\n",
session->newdata.time);
else if (session->newdata.time < 0)
gpsd_log(&session->context->errout, LOG_ERROR,