Azure IoT common library
Dependents: STM32F746_iothub_client_sample_mqtt f767zi_mqtt iothub_client_sample_amqp iothub_client_sample_http ... more
Diff: consolelogger.c
- Revision:
- 25:8507bf644fdf
- Parent:
- 19:2e0811512ceb
- Child:
- 27:8656a313842b
--- a/consolelogger.c Thu Apr 06 14:12:06 2017 -0700 +++ b/consolelogger.c Fri Apr 21 14:51:10 2017 -0700 @@ -5,7 +5,11 @@ #include <stdio.h> #include <time.h> #include "azure_c_shared_utility/xlogging.h" +#include "azure_c_shared_utility/consolelogger.h" +#if defined(__GNUC__) +__attribute__ ((format (printf, 6, 7))) +#endif void consolelogger_log(LOG_CATEGORY log_category, const char* file, const char* func, const int line, unsigned int options, const char* format, ...) { va_list args;