From e100c9642b5f78c7d68909685595bbd6c3022bbb Mon Sep 17 00:00:00 2001 From: Kevin Shanahan Date: Mon, 17 Dec 2012 13:02:19 +1030 Subject: [PATCH] common: add prinf format attribute to logprint/logvprint Signed-off-by: Kevin Shanahan --- include/common/log.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/common/log.h b/include/common/log.h index c9340b1b..cf2351ba 100644 --- a/include/common/log.h +++ b/include/common/log.h @@ -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__ */