diff --git a/src/common/log.h b/src/common/log.h
index 2543b51a8d731d9a5774841a909df3d9a4b13570..3518d4e1d690196cbcae10624c1f4e500ead1d84 100644
--- a/src/common/log.h
+++ b/src/common/log.h
@@ -89,7 +89,7 @@ enum LOG_LEVELS {
 void GenericLog(LOGTYPES_LEVELS level, LOGTYPES_TYPE type, const char*file, int line, 
     const char* function, const char* fmt, ...)
 #ifdef __GNUC__
-        __attribute__((format(printf, 5, 6)))
+        __attribute__((format(printf, 6, 7)))
 #endif
         ;