summaryrefslogtreecommitdiff
path: root/gpsd.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2011-01-10 10:45:45 -0500
committerEric S. Raymond <esr@thyrsus.com>2011-01-10 10:51:33 -0500
commit32e99f3888c6b5690bb7ee18a6e6ad9ff1a3f87d (patch)
tree62443145b127492a022038eb6955bfd864db1c50 /gpsd.c
parent729d860096f96c5d1a7f5bc161967b90368d92e0 (diff)
downloadgpsd-32e99f3888c6b5690bb7ee18a6e6ad9ff1a3f87d.tar.gz
Under Linux, use /proc to avoid opening serial devices already open.
This will help prevent gpsd from consuming data from devices such as USB modems that happen to look like GPSes because they use a USB-to-serial adapter thar we have whitelisted. Relies on there being a /proc filesystem with Linux-like semantics.
Diffstat (limited to 'gpsd.c')
-rw-r--r--gpsd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gpsd.c b/gpsd.c
index 72048707..a94b15c0 100644
--- a/gpsd.c
+++ b/gpsd.c
@@ -1790,7 +1790,7 @@ int main(int argc, char *argv[])
for (i = optind; i < argc; i++) {
if (!add_device(argv[i])) {
gpsd_report(LOG_ERROR,
- "GPS device %s nonexistent or can't be read\n",
+ "GPS device %s open failed\n",
argv[i]);
}
}