diff options
Diffstat (limited to 'libgpsd_core.c')
-rw-r--r-- | libgpsd_core.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libgpsd_core.c b/libgpsd_core.c index cce41ea2..6ab09bc5 100644 --- a/libgpsd_core.c +++ b/libgpsd_core.c @@ -177,6 +177,8 @@ void gpsd_report(const struct gpsd_errout_t *errout, if (getpid() == getsid(getpid())) syslog((errlevel == 0) ? LOG_ERR : LOG_NOTICE, "%s", buf2); + else if (errout->report != NULL) + errout->report(buf2); else (void)fputs(buf2, stderr); #if defined(PPS_ENABLE) |