summaryrefslogtreecommitdiff
path: root/net_dgpsip.c
diff options
context:
space:
mode:
Diffstat (limited to 'net_dgpsip.c')
-rw-r--r--net_dgpsip.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/net_dgpsip.c b/net_dgpsip.c
index 14662bc3..dc596efa 100644
--- a/net_dgpsip.c
+++ b/net_dgpsip.c
@@ -37,7 +37,7 @@ int dgpsip_open(struct gps_device_t *device, const char *dgpsserver)
// cppcheck-suppress pointerPositive
if (device->gpsdata.gps_fd >= 0) {
char hn[256], buf[BUFSIZ];
- gpsd_notify(&device->context->errout, LOG_PROG,
+ gpsd_report(&device->context->errout, LOG_PROG,
"connection to DGPS server %s established.\n",
dgpsserver);
(void)gethostname(hn, sizeof(hn));
@@ -45,11 +45,11 @@ int dgpsip_open(struct gps_device_t *device, const char *dgpsserver)
(void)snprintf(buf, sizeof(buf), "HELO %s gpsd %s\r\nR\r\n", hn,
VERSION);
if (write(device->gpsdata.gps_fd, buf, strlen(buf)) != (ssize_t) strlen(buf))
- gpsd_notify(&device->context->errout, LOG_ERROR,
+ gpsd_report(&device->context->errout, LOG_ERROR,
"hello to DGPS server %s failed\n",
dgpsserver);
} else
- gpsd_notify(&device->context->errout, LOG_ERROR,
+ gpsd_report(&device->context->errout, LOG_ERROR,
"can't connect to DGPS server %s, netlib error %d.\n",
dgpsserver, device->gpsdata.gps_fd);
opts = fcntl(device->gpsdata.gps_fd, F_GETFL);
@@ -81,9 +81,9 @@ void dgpsip_report(struct gps_context_t *context,
gps->gpsdata.fix.altitude);
if (write(dgpsip->gpsdata.gps_fd, buf, strlen(buf)) ==
(ssize_t) strlen(buf))
- gpsd_notify(&context->errout, LOG_IO, "=> dgps %s\n", buf);
+ gpsd_report(&context->errout, LOG_IO, "=> dgps %s\n", buf);
else
- gpsd_notify(&context->errout, LOG_IO, "write to dgps FAILED\n");
+ gpsd_report(&context->errout, LOG_IO, "write to dgps FAILED\n");
}
}
}