Skip to content

Commit

Permalink
syslog: fix RE_ARRAY_SIZE
Browse files Browse the repository at this point in the history
  • Loading branch information
sreimers committed Feb 1, 2024
1 parent 325bfdc commit ce35943
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/syslog/syslog.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}


Expand Down

0 comments on commit ce35943

Please sign in to comment.