summaryrefslogtreecommitdiff
path: root/libgpsd_core.c
diff options
context:
space:
mode:
authorZbigniew Chyla <zbigniew.chyla@nokia.com>2015-03-22 21:55:51 +0200
committerEric S. Raymond <esr@thyrsus.com>2015-03-22 16:37:17 -0400
commit1e3cac574dd0f03d251066043f6bbcef64751958 (patch)
treedae69f9ea75d03336f0838c15fc7d380469d9f7f /libgpsd_core.c
parent5b0bba4227dedb1c0f3004e9d6b775365390be11 (diff)
downloadgpsd-1e3cac574dd0f03d251066043f6bbcef64751958.tar.gz
Use LOG_* symbol when setting/comparing log level
Currently, debug level 0 is actually LOG_SHOUT. This change doesn't affect generated binary code.
Diffstat (limited to 'libgpsd_core.c')
-rw-r--r--libgpsd_core.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libgpsd_core.c b/libgpsd_core.c
index 65ff50d4..4a601134 100644
--- a/libgpsd_core.c
+++ b/libgpsd_core.c
@@ -53,7 +53,7 @@ static void basic_report(const char *buf)
void errout_reset(struct gpsd_errout_t *errout)
{
- errout->debug = 0;
+ errout->debug = LOG_SHOUT;
errout->report = basic_report;
}
@@ -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 == 0) ? 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