From ce996643fe527e4448774a029f9629f152900642 Mon Sep 17 00:00:00 2001 From: "Gary E. Miller" Date: Tue, 23 Apr 2019 14:40:08 -0700 Subject: libgpsd_core.c: Improve error message a tad. --- libgpsd_core.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'libgpsd_core.c') 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; -- cgit v1.2.1