diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2009-11-11 06:58:15 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2009-11-11 06:58:15 +0000 |
commit | 07f7c76ec8562367db7db907b4ae5400c7a91c05 (patch) | |
tree | f427a2199a447b752f5718d1f32c8e0e01c52308 /gpsctl.c | |
parent | 257bab6446c0c194a2003f40d15a1f3fbdf2fa76 (diff) | |
download | gpsd-07f7c76ec8562367db7db907b4ae5400c7a91c05.tar.gz |
Dump the returned erro when ERR_SET is raised.
Diffstat (limited to 'gpsctl.c')
-rw-r--r-- | gpsctl.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -78,7 +78,7 @@ static int gps_query(struct gps_data_t *gpsdata, const char *fmt, ... ) gpsd_report(LOG_PROG, "gps_query(), wrote, %s\n", buf); ret = gps_poll(gpsdata); if ( ERR_SET & gpsdata->set) { - gpsd_report(LOG_ERROR, "gps_query() error\n"); + gpsd_report(LOG_ERROR, "gps_query() error '%s'\n", gpsdata->error); } return ret; |