common: add prinf format attribute to logprint/logvprint

Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
This commit is contained in:
Kevin Shanahan 2012-12-17 13:02:19 +10:30
parent ee015abe53
commit e100c9642b
1 changed files with 2 additions and 2 deletions

View File

@ -32,7 +32,7 @@
void init_log(char *filename);
void close_log();
void logprint(const char *fmt, ...);
void logvprint(const char *fmt, va_list args);
void logprint(const char *fmt, ...) __attribute__((format(printf,1,2)));
void logvprint(const char *fmt, va_list args) __attribute__((format(printf,1,0)));
#endif /* __COMMON_LOG_H__ */