* [Bug 2636] Clutter in syslog if gpsd not running
- found (hopefully) last cause for clutter in protocol version
+ - log GPSD revision and release numbers with protocol version
(4.2.7p464) 2014/08/22 Released by Harlan Stenn <stenn@ntp.org>
* [Bug 2636] Fix coverity warning from previous patch.
(4.2.7p463) 2014/08/21 Released by Harlan Stenn <stenn@ntp.org>
int len;
char * buf;
+ const char *revision;
+ const char *release;
/* get protocol version number */
+ revision = json_object_lookup_string_default(
+ jctx, 0, "rev", "(unknown)");
+ release = json_object_lookup_string_default(
+ jctx, 0, "release", "(unknown)");
errno = 0;
up->proto_major = (uint16_t)json_object_lookup_int(
jctx, 0, "proto_major");
up->fl_vers = -1;
if (syslogok(pp, up))
msyslog(LOG_INFO,
- "%s: GPSD protocol version %u.%u",
+ "%s: GPSD revision=%s release=%s protocol=%u.%u",
refnumtoa(&peer->srcadr),
+ revision, release,
up->proto_major, up->proto_minor);
}