summaryrefslogtreecommitdiff
path: root/libgpsd_core.c
diff options
context:
space:
mode:
authorGary E. Miller <gem@rellim.com>2019-04-23 14:40:08 -0700
committerGary E. Miller <gem@rellim.com>2019-04-23 14:40:08 -0700
commitce996643fe527e4448774a029f9629f152900642 (patch)
tree31e00f836284d2baa77ff0eaa5f274aa9a2a1f42 /libgpsd_core.c
parentd07dcea2457d9f00d01b055120be38ca80c568bc (diff)
downloadgpsd-ce996643fe527e4448774a029f9629f152900642.tar.gz
libgpsd_core.c: Improve error message a tad.
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;