diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2010-12-16 17:57:46 -0500 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2010-12-16 17:57:46 -0500 |
commit | 4a8ba33a11077c241c60cf888f1c5ddb6bbb5b4b (patch) | |
tree | 0a3ee4eb9604930556a29c4f5a46b75daab994f7 /libgps_core.c | |
parent | fd203176f17c88b334008ce752009213f1c127e3 (diff) | |
download | gpsd-4a8ba33a11077c241c60cf888f1c5ddb6bbb5b4b.tar.gz |
Refactor to turf all uses of gpsd_report() out of netlib.c
A recent bug report makes it clear that all such uses have to be removed from
the client libraries. Otherwise a GUI client might dummp log messages uselessly
in the X session error log. This is a start.
Diffstat (limited to 'libgps_core.c')
-rw-r--r-- | libgps_core.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libgps_core.c b/libgps_core.c index ad3dd8e4..2ca14364 100644 --- a/libgps_core.c +++ b/libgps_core.c @@ -96,8 +96,12 @@ int gps_open(/*@null@*/const char *host, /*@null@*/const char *port, if ((gpsdata->gps_fd = netlib_connectsock(AF_UNSPEC, host, port, "tcp")) < 0) { errno = gpsdata->gps_fd; + gpsd_report(LOG_SPIN, "netlib_connectsock() returns error %d\n", errno); return -1; } + else + gpsd_report(LOG_SPIN, "netlib_connectsock() returns socket on fd %d\n", + gpsdata->gps_fd); #else QTcpSocket *sock = new QTcpSocket(); gpsdata->gps_fd = sock; |