diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2015-04-01 14:08:26 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2015-04-01 14:23:25 -0400 |
commit | ceba717184bf78aa5435f8051510e7439872e6d5 (patch) | |
tree | c80313a89892a50b891d26b3f21e4bc9d64c561a /gpsmon.c | |
parent | c505988baec87349337b61ccf4c2dfe31457a34f (diff) | |
download | gpsd-ceba717184bf78aa5435f8051510e7439872e6d5.tar.gz |
Improved error messages in gpsmon.
Diffstat (limited to 'gpsmon.c')
-rw-r--r-- | gpsmon.c | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -725,8 +725,7 @@ static void gpsmon_hook(struct gps_device_t *device, gps_mask_t changed UNUSED) &session.gpsdata, &end); if (status != 0) { - /* FIXME: figure out why using json_error_string() core dumps */ - complain("Ill-formed TOFF packet: %d", status); + complain("Ill-formed TOFF packet: %d (%s)", status, json_error_string(status)); return; } else { if (!curses_active) @@ -748,8 +747,7 @@ static void gpsmon_hook(struct gps_device_t *device, gps_mask_t changed UNUSED) &noclobber, &end); if (status != 0) { - /* FIXME: figure out why using json_error_string() core dumps */ - complain("Ill-formed PPS packet: %d", status); + complain("Ill-formed PPS packet: %d (%s)", status, json_error_string(status)); return; } else { struct timespec timedelta; |