summaryrefslogtreecommitdiff
path: root/libgpsd_core.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2015-03-22 16:48:16 -0400
committerEric S. Raymond <esr@thyrsus.com>2015-03-22 16:48:16 -0400
commit6cb7d1024cb3e9e721e7a1d7cfbdea9b47b4e18b (patch)
treeeab283e62f639b665e6eec46f4de8b517cd307f1 /libgpsd_core.c
parent1e3cac574dd0f03d251066043f6bbcef64751958 (diff)
downloadgpsd-6cb7d1024cb3e9e721e7a1d7cfbdea9b47b4e18b.tar.gz
Followup on the recommendation in Savannah bug #44603.
That is, "probably LOG_SHOUT should be replaced with LOG_ERROR in assignments and comparison". Fix the only case of this.
Diffstat (limited to 'libgpsd_core.c')
-rw-r--r--libgpsd_core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libgpsd_core.c b/libgpsd_core.c
index 4a601134..e2afbc13 100644
--- a/libgpsd_core.c
+++ b/libgpsd_core.c
@@ -176,7 +176,7 @@ void gpsd_vlog(const struct gpsd_errout_t *errout,
visibilize(outbuf, outlen, buf, strlen(buf));
if (getpid() == getsid(getpid()))
- syslog((errlevel == LOG_SHOUT) ? LOG_ERR : LOG_NOTICE, "%s", outbuf);
+ syslog((errlevel <= LOG_SHOUT) ? LOG_ERR : LOG_NOTICE, "%s", outbuf);
else if (errout->report != NULL)
errout->report(outbuf);
else