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__ */