From 64aa7ca30cb4225652f445a3652bce1ea1a6d8d9 Mon Sep 17 00:00:00 2001 From: Jon Shallow Date: Mon, 12 Feb 2018 15:28:58 +0000 Subject: [PATCH] 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 --- src/coap_io.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/coap_io.c b/src/coap_io.c index 9af6d98e..f435f47b 100644 --- a/src/coap_io.c +++ b/src/coap_io.c @@ -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; } }