diff options
Diffstat (limited to 'platform/linux-generic/include/odp_debug_internal.h')
-rw-r--r-- | platform/linux-generic/include/odp_debug_internal.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/platform/linux-generic/include/odp_debug_internal.h b/platform/linux-generic/include/odp_debug_internal.h index dfad95b19..5027cfe4a 100644 --- a/platform/linux-generic/include/odp_debug_internal.h +++ b/platform/linux-generic/include/odp_debug_internal.h @@ -33,8 +33,15 @@ extern "C" { * level 0 to N. */ #define CONFIG_DEBUG_LEVEL 0 +ODP_PRINTF_FORMAT(1, 2) +static inline void check_printf_format(const char *fmt, ...) +{ + (void)fmt; +} + #define _ODP_LOG_FN(level, fmt, ...) \ do { \ + check_printf_format(fmt, ##__VA_ARGS__); \ if (_odp_this_thread && _odp_this_thread->log_fn) \ _odp_this_thread->log_fn(level, fmt, ##__VA_ARGS__); \ else \ |