From ce359438548241a764f40307a59c167168978b5e Mon Sep 17 00:00:00 2001 From: Sebastian Reimers Date: Thu, 1 Feb 2024 20:41:37 +0100 Subject: [PATCH] syslog: fix RE_ARRAY_SIZE --- modules/syslog/syslog.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/syslog/syslog.c b/modules/syslog/syslog.c index 783499e..62c2870 100644 --- a/modules/syslog/syslog.c +++ b/modules/syslog/syslog.c @@ -14,7 +14,7 @@ static const int lmap[] = { LOG_DEBUG, LOG_INFO, LOG_WARNING, LOG_ERR }; static void log_handler(uint32_t level, const char *msg) { - syslog(lmap[MIN(level, ARRAY_SIZE(lmap)-1)], "%s", msg); + syslog(lmap[MIN(level, RE_ARRAY_SIZE(lmap)-1)], "%s", msg); }