From 645d85e8c8e80b8ee42cb71c4a3644050d7811ea Mon Sep 17 00:00:00 2001 From: Arnaud Pouliquen Date: Mon, 6 May 2024 14:56:59 +0200 Subject: [PATCH] lib: fix doxygen warning in log.h fix following warning: lib/log.h:91: warning: argument 'args...' of command @param is not found in the argumentlist of metal_log(level, fmt, args...) lib/log.h:98: warning: The following parameter of metal_log(level, fmt, args...) is not documented: parameter 'args...' Signed-off-by: Arnaud Pouliquen --- lib/log.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/log.h b/lib/log.h index 4b658309..e9834e0c 100644 --- a/lib/log.h +++ b/lib/log.h @@ -93,11 +93,11 @@ extern void metal_default_log_handler(enum metal_log_level level, * * @param level Log level. * @param fmt Format string. - * @param args... Variable number of arguments. + * @param ... Variable number of arguments. */ -#define metal_log(level, fmt, args...) ({ \ +#define metal_log(level, fmt, ...) ({ \ if (_metal.common.log_handler && level <= _metal.common.log_level) \ - _metal.common.log_handler(level, metal_fmt(fmt), ##args); \ + _metal.common.log_handler(level, metal_fmt(fmt), ## __VA_ARGS__); \ }) #define metal_err(fmt, args...) metal_log(METAL_LOG_ERROR, fmt, ##args)