From eb5b69d278b1430750a5e1d74bd2804cbc4b14e8 Mon Sep 17 00:00:00 2001 From: Alex Dowad Date: Fri, 4 Apr 2014 16:31:24 +0200 Subject: all: unified framework for reporting errors/warnings/info messages to stderr/syslog --- src/authdb.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/authdb.c') 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; } -- cgit v1.2.3