diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2013-11-12 21:40:24 -0500 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2013-11-12 21:40:24 -0500 |
commit | e1425dc4ee2d7a5e5a985b792c37b273a2056e87 (patch) | |
tree | f7be226f75c4f952a6b6f950e8c6b71791b304db /gpsmon.c | |
parent | 7127622632ac2824a659a0d0acde60a4a95185f8 (diff) | |
download | gpsd-e1425dc4ee2d7a5e5a985b792c37b273a2056e87.tar.gz |
Another error message upgrade.
Diffstat (limited to 'gpsmon.c')
-rw-r--r-- | gpsmon.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 @*/ |