summaryrefslogtreecommitdiff
path: root/lib/log.h
diff options
context:
space:
mode:
authorQuentin Young <qlyoung@cumulusnetworks.com>2018-08-14 20:16:52 +0000
committerQuentin Young <qlyoung@cumulusnetworks.com>2018-09-06 20:50:58 +0000
commit2311712a62d098e0aa2268232d94278aa8230a4d (patch)
tree14631cbd23c0632a88b3988b42def2bf6ad817c5 /lib/log.h
parentccf811a32bffa9bc6e9567560701eb3c13552d59 (diff)
lib: add flog_warn
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to 'lib/log.h')
-rw-r--r--lib/log.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/log.h b/lib/log.h
index 7d05b84641..c30c53c5a7 100644
--- a/lib/log.h
+++ b/lib/log.h
@@ -90,6 +90,8 @@ extern void zlog_debug(const char *format, ...) PRINTF_ATTRIBUTE(1, 2);
zlog_err("[EC %"PRIu32"] " format, ferr_id, ##__VA_ARGS__)
#define flog_err_sys(ferr_id, format, ...) \
flog_err(ferr_id, format, ##__VA_ARGS__)
+#define flog_warn(ferr_id, format, ...) \
+ zlog_warn("[EC %d] " format, ferr_id, ##__VA_ARGS__)
extern void zlog_thread_info(int log_level);