diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2014-08-27 20:26:01 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2014-08-27 20:26:56 -0400 |
commit | 068a90a92337d8476a69ed0048723e7587f6209f (patch) | |
tree | fdf92a4fad19701d7469d827feeb4ae5b51c4fb2 /net_dgpsip.c | |
parent | 7b0feb181260ff4e005547a3ae870ebc545b1e85 (diff) | |
download | gpsd-068a90a92337d8476a69ed0048723e7587f6209f.tar.gz |
Now that the transition is done we can restore the gpsd_report name.
All regression tests pass.
Diffstat (limited to 'net_dgpsip.c')
-rw-r--r-- | net_dgpsip.c | 10 |
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"); } } } |