Skip to content

Commit

Permalink
lib: fix doxygen warning in log.h
Browse files Browse the repository at this point in the history
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 <arnaud.pouliquen@foss.st.com>
  • Loading branch information
arnopo committed May 13, 2024
1 parent 0f1db10 commit 645d85e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/log.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 645d85e

Please sign in to comment.