coap_io.c: Fix coap_log warning message

Adding in '__attribute__ ((format(printf, 2, 3))' causes
coap_log(LOG_DEBUG, coap_socket_strerror()); to give a warning in coap_run_once
This commit is contained in:
Jon Shallow committed 2018-02-12 15:28:58 +00:00
1 parent 93c8471233
commit 64aa7ca30c
1 file changed
+1 -1
+1 -1
View File
@@ -1169,7 +1169,7 @@ coap_run_once(coap_context_t *ctx, unsigned timeout_ms) {
#else
if (errno != EINTR) {
#endif
coap_log(LOG_DEBUG, coap_socket_strerror());
coap_log(LOG_DEBUG, "%s", coap_socket_strerror());
return -1;
}
}