summaryrefslogtreecommitdiff
path: root/gpsctl.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2009-11-11 06:58:15 +0000
committerEric S. Raymond <esr@thyrsus.com>2009-11-11 06:58:15 +0000
commit07f7c76ec8562367db7db907b4ae5400c7a91c05 (patch)
treef427a2199a447b752f5718d1f32c8e0e01c52308 /gpsctl.c
parent257bab6446c0c194a2003f40d15a1f3fbdf2fa76 (diff)
downloadgpsd-07f7c76ec8562367db7db907b4ae5400c7a91c05.tar.gz
Dump the returned erro when ERR_SET is raised.
Diffstat (limited to 'gpsctl.c')
-rw-r--r--gpsctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gpsctl.c b/gpsctl.c
index 17ae0075..fcc29c96 100644
--- a/gpsctl.c
+++ b/gpsctl.c
@@ -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;