log: use printf attribute for log fallback

Fixes #233
This commit is contained in:
Wim Taymans 2020-05-01 11:18:28 +02:00
parent 979a81a70d
commit e83bf8a33f

View file

@ -139,7 +139,7 @@ struct spa_log_methods {
#else #else
#define SPA_LOG_FUNC(name,lev) \ #define SPA_LOG_FUNC(name,lev) \
static inline void spa_log_##name (struct spa_log *l, const char *format, ...) \ static inline SPA_PRINTF_FUNC(2,3) void spa_log_##name (struct spa_log *l, const char *format, ...) \
{ \ { \
if (SPA_UNLIKELY(spa_log_level_enabled(l, lev))) { \ if (SPA_UNLIKELY(spa_log_level_enabled(l, lev))) { \
va_list varargs; \ va_list varargs; \