module-avb: utils: introduce array size for static arrays

This commit is contained in:
hackerman-kl 2025-11-29 15:01:03 +01:00 committed by Wim Taymans
parent cdf1ebe861
commit 8e135c1015

View file

@ -9,6 +9,8 @@
#include "internal.h"
#define ARRAY_SIZE(x) (sizeof(x) / sizeof(x[0]))
static inline char *avb_utils_format_id(char *str, size_t size, const uint64_t id)
{
snprintf(str, size, "%02x:%02x:%02x:%02x:%02x:%02x:%04x",