summaryrefslogtreecommitdiff
path: root/gpsmon.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2013-11-12 21:40:24 -0500
committerEric S. Raymond <esr@thyrsus.com>2013-11-12 21:40:24 -0500
commite1425dc4ee2d7a5e5a985b792c37b273a2056e87 (patch)
treef7be226f75c4f952a6b6f950e8c6b71791b304db /gpsmon.c
parent7127622632ac2824a659a0d0acde60a4a95185f8 (diff)
downloadgpsd-e1425dc4ee2d7a5e5a985b792c37b273a2056e87.tar.gz
Another error message upgrade.
Diffstat (limited to 'gpsmon.c')
-rw-r--r--gpsmon.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gpsmon.c b/gpsmon.c
index 1f13d76d..3b906394 100644
--- a/gpsmon.c
+++ b/gpsmon.c
@@ -830,7 +830,8 @@ static bool do_command(void)
("Invalid hex string (error %d)", st);
else if ((*active)->driver->control_send == NULL)
monitor_complain
- ("Device type has no control-send method.");
+ ("Device type %s has no control-send method.",
+ (*active)->driver->type_name);
else if (!monitor_control_send(buf, (size_t) st))
monitor_complain("Control send failed.");
/*@ +compdef @*/
@@ -844,8 +845,7 @@ static bool do_command(void)
/*@ -compdef @*/
ssize_t len = (ssize_t) gpsd_hexpack(arg, (char *)buf, strlen(arg));
if (len < 0)
- monitor_complain("Invalid hex string (error %d)",
- len);
+ monitor_complain("Invalid hex string (error %d)", len);
else if (!monitor_raw_send(buf, (size_t) len))
monitor_complain("Raw send failed.");
/*@ +compdef @*/