summaryrefslogtreecommitdiff
path: root/libgpsd_core.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2010-04-06 22:21:39 -0400
committerEric S. Raymond <esr@thyrsus.com>2010-04-06 22:21:39 -0400
commit5abc996a88e454706234656986506aba58b530ab (patch)
tree3820b078e10e096a7e295bc32d52c2c088bc21d6 /libgpsd_core.c
parent7fa51189de249e610a1bc1ce7088964670476d42 (diff)
downloadgpsd-5abc996a88e454706234656986506aba58b530ab.tar.gz
Add all our info on the spin bug to TODO, and instrument all opens/closes.
Diffstat (limited to 'libgpsd_core.c')
-rw-r--r--libgpsd_core.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/libgpsd_core.c b/libgpsd_core.c
index 0abbc5b9..533ea907 100644
--- a/libgpsd_core.c
+++ b/libgpsd_core.c
@@ -317,11 +317,13 @@ int gpsd_activate(struct gps_device_t *session)
/* acquire a connection to the GPS device */
{
/* special case: source may be a URI to a remote GNSS or DGPS service */
- if (netgnss_uri_check(session->gpsdata.dev.path))
+ if (netgnss_uri_check(session->gpsdata.dev.path)) {
session->gpsdata.gps_fd = netgnss_uri_open(session->context,
session->gpsdata.dev.path);
+ gpsd_report(LOG_SPIN, "netgnss_uri_open(%s) returns socket on fd %d\n",
+ session->gpsdata.dev.path, session->gpsdata.gps_fd);
/* otherwise, could be an AIS data feed */
- else if (strncmp(session->gpsdata.dev.path, "ais://", 6) == 0) {
+ } else if (strncmp(session->gpsdata.dev.path, "ais://", 6) == 0) {
char server[GPS_PATH_MAX], *port;
socket_t dsock;
(void)strlcpy(server, session->gpsdata.dev.path+6, sizeof(server));