diff options
| author | Renato Westphal <renato@opensourcerouting.org> | 2019-04-18 13:13:26 -0300 |
|---|---|---|
| committer | Renato Westphal <renato@opensourcerouting.org> | 2019-04-18 13:15:13 -0300 |
| commit | e412d3b8d974dd39d95ce484b021a6593d373151 (patch) | |
| tree | a8d86f4c7d4811dc9de23343f12f13f6dd3083f1 /lib/log.h | |
| parent | 1ae9686cdf1b3e514345a5c8ddfa060d9d0429eb (diff) | |
lib: move zlog() prototype back to the public logging API
zlog() should be part of the public logging API as it's useful in
the cases where the logging priority isn't known at compile time
(i.e. it depends on a variable).
Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
Diffstat (limited to 'lib/log.h')
| -rw-r--r-- | lib/log.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -94,6 +94,7 @@ extern void zlog_warn(const char *format, ...) PRINTF_ATTRIBUTE(1, 2); extern void zlog_info(const char *format, ...) PRINTF_ATTRIBUTE(1, 2); extern void zlog_notice(const char *format, ...) PRINTF_ATTRIBUTE(1, 2); extern void zlog_debug(const char *format, ...) PRINTF_ATTRIBUTE(1, 2); +extern void zlog(int priority, const char *format, ...) PRINTF_ATTRIBUTE(2, 3); /* For logs which have error codes associated with them */ #define flog_err(ferr_id, format, ...) \ |
