annotate two function with __attribute__ ((format (printf...

Helps to find format strings bugs..
This commit is contained in:
Cristian Rodríguez
2014-04-08 17:51:22 -03:00
committed by Milan Broz
parent 0db77f3ace
commit ae23ecb9b2
2 changed files with 2 additions and 2 deletions

View File

@@ -57,7 +57,7 @@ extern int opt_force_password;
/* Common tools */
void clogger(struct crypt_device *cd, int level, const char *file, int line,
const char *format, ...);
const char *format, ...) __attribute__ ((format (printf, 5, 6)));
void tool_log(int level, const char *msg, void *usrptr __attribute__((unused)));
void quiet_log(int level, const char *msg, void *usrptr);