From: Olivier Matz Date: Thu, 3 Aug 2017 20:23:21 +0000 (+0200) Subject: log attr X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=902fbd9c70f344d26ea8d8fc63aad1b56e131755;hp=5510aae15debf26e0e0b07732f6fd041fd53acb6;p=protos%2Flibecoli.git log attr --- 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 */