From 902fbd9c70f344d26ea8d8fc63aad1b56e131755 Mon Sep 17 00:00:00 2001 From: Olivier Matz Date: Thu, 3 Aug 2017 22:23:21 +0200 Subject: [PATCH] log attr --- lib/ecoli_log.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/ecoli_log.h b/lib/ecoli_log.h index f46f6f2..089254f 100644 --- a/lib/ecoli_log.h +++ b/lib/ecoli_log.h @@ -46,7 +46,9 @@ int ec_log_register(ec_log_t usr_log, void *opaque); void ec_log_unregister(void); /* same api than printf */ -int ec_log(unsigned int level, const char *format, ...); +int ec_log(unsigned int level, const char *format, ...) + __attribute__((format(__printf__, 2, 3))); + int ec_vlog(unsigned int level, const char *format, va_list ap); /* default log handler for the library, use printf */ -- 2.20.1