summaryrefslogtreecommitdiff
path: root/lib/log.h
diff options
context:
space:
mode:
authorRenato Westphal <renato@opensourcerouting.org>2019-04-18 13:13:26 -0300
committerRenato Westphal <renato@opensourcerouting.org>2019-04-18 13:15:13 -0300
commite412d3b8d974dd39d95ce484b021a6593d373151 (patch)
treea8d86f4c7d4811dc9de23343f12f13f6dd3083f1 /lib/log.h
parent1ae9686cdf1b3e514345a5c8ddfa060d9d0429eb (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.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/log.h b/lib/log.h
index 189857a907..09d3a65ecd 100644
--- a/lib/log.h
+++ b/lib/log.h
@@ -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, ...) \