summaryrefslogtreecommitdiff
path: root/gpsmon.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2013-11-12 21:36:48 -0500
committerEric S. Raymond <esr@thyrsus.com>2013-11-12 21:36:48 -0500
commit7127622632ac2824a659a0d0acde60a4a95185f8 (patch)
tree4c007702a77b78a4d0a28f555b1dc12f74a669ed /gpsmon.c
parent695da3accde7b3dade03a1034b1caf56501418f3 (diff)
downloadgpsd-7127622632ac2824a659a0d0acde60a4a95185f8.tar.gz
In gpsmon, more informative error messages.
Diffstat (limited to 'gpsmon.c')
-rw-r--r--gpsmon.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/gpsmon.c b/gpsmon.c
index f795bb9d..1f13d76d 100644
--- a/gpsmon.c
+++ b/gpsmon.c
@@ -636,7 +636,8 @@ static bool do_command(void)
/* *INDENT-ON* */
} else
monitor_complain
- ("Device type has no rate switcher");
+ ("Device type %s has no rate switcher",
+ (*switcher)->driver->type_name);
}
#endif /* RECONFIGURE_ENABLE */
break;
@@ -702,7 +703,8 @@ static bool do_command(void)
(void)usleep(50000);
} else
monitor_complain
- ("Device type has no mode switcher");
+ ("Device type %s has no mode switcher",
+ (*switcher)->driver->type_name);
}
break;
#endif /* RECONFIGURE_ENABLE */
@@ -776,7 +778,8 @@ static bool do_command(void)
context.readonly = true;
} else
monitor_complain
- ("Device type has no speed switcher");
+ ("Device type %s has no speed switcher",
+ (*switcher)->driver->type_name);
/* *INDENT-ON* */
refresh_statwin();
}