* @param tag - Module name
* @param format - variadic log string
*/
-void OICLogv(LogLevel level, const char *tag, const char *format, ...);
+void OICLogv(LogLevel level, const char *tag, const char *format, ...)
+#if defined(__GNUC__)
+ __attribute__ ((format(printf, 3, 4)))
+#endif
+;
/**
* Output the contents of the specified buffer (in hex) with the specified priority level.
* @param format - variadic log string
*/
void OICLogv(LogLevel level, PROGMEM const char *tag, const int16_t lineNum,
- PROGMEM const char *format, ...);
+ PROGMEM const char *format, ...)
+#if defined(__GNUC__)
+ __attribute__ ((format(printf, 4, 5)))
+#endif
+;
#endif
#ifdef TB_LOG
#ifdef __cplusplus
}
#endif // __cplusplus
-#endif /* U_LOGGER_H_ */
\ No newline at end of file
+#endif /* U_LOGGER_H_ */
* @param tag - Module name
* @param format - variadic log string
*/
- void OCLogv(LogLevel level, const char * tag, const char * format, ...);
+ void OCLogv(LogLevel level, const char * tag, const char * format, ...)
+#if defined(__GNUC__)
+ __attribute__ ((format(printf, 3, 4)))
+#endif
+ ;
/**
* Output a log string with the specified priority level.
* @param tag - Module name
* @param format - variadic log string
*/
- void OCLogv(LogLevel level, const char * tag, const char * format, ...);
+ void OCLogv(LogLevel level, const char * tag, const char * format, ...)
+#if defined(__GNUC__)
+ __attribute__ ((format(printf, 3, 4)))
+#endif
+ ;
#endif
#ifdef TB_LOG