summaryrefslogtreecommitdiff
path: root/libgpsd_core.c
diff options
context:
space:
mode:
Diffstat (limited to 'libgpsd_core.c')
-rw-r--r--libgpsd_core.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/libgpsd_core.c b/libgpsd_core.c
index 177aa738..7e876ccf 100644
--- a/libgpsd_core.c
+++ b/libgpsd_core.c
@@ -1548,10 +1548,12 @@ 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 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,
- "date is negative!\n");
+ "date (%.3f) is negative!\n",
+ session->newdata.time);
}
return session->gpsdata.set;