summaryrefslogtreecommitdiffstats
path: root/src/authdb.c
diff options
context:
space:
mode:
authorAlex Dowad <alexinbeijing@gmail.com>2014-04-04 16:31:24 +0200
committerTimo Teräs <timo.teras@iki.fi>2014-04-25 10:16:30 +0300
commiteb5b69d278b1430750a5e1d74bd2804cbc4b14e8 (patch)
tree7a99d0443e7ac76478f47f777ef96e231983d88e /src/authdb.c
parent0ad83e2f69e69aeea1ac0baee108c4232449e36d (diff)
downloadsquark-eb5b69d278b1430750a5e1d74bd2804cbc4b14e8.tar.bz2
squark-eb5b69d278b1430750a5e1d74bd2804cbc4b14e8.tar.xz
all: unified framework for reporting errors/warnings/info messages to stderr/syslog
Diffstat (limited to 'src/authdb.c')
-rw-r--r--src/authdb.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/authdb.c b/src/authdb.c
index b9d38c8..a329d8b 100644
--- a/src/authdb.c
+++ b/src/authdb.c
@@ -319,8 +319,7 @@ static inline uint64_t to_category(struct sqdb *db, blob_t c)
if (category >= 0)
return 1ULL << category;
- fprintf(stderr, "WARNING: unknown category '%.*s'\n",
- c.len, c.ptr);
+ report_warning("Unknown category '%.*s'\n", c.len, c.ptr);
return 0;
}