mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-07 10:12:53 +03:00
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:
1 parent
93c8471233
commit
64aa7ca30c
1 file changed
+1
-1
+1
-1
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user