From 9166a6e68e09ed81c3cd2ffd225e0cb80d79a4a4 Mon Sep 17 00:00:00 2001 From: Simon Date: Fri, 21 Dec 2018 17:20:42 +0800 Subject: [PATCH] Fix log bug in "ec20_domain_resolve" fuction. --- at_socket_ec20.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/at_socket_ec20.c b/at_socket_ec20.c index 51f66d5..a6901a2 100644 --- a/at_socket_ec20.c +++ b/at_socket_ec20.c @@ -782,7 +782,7 @@ static int ec20_domain_resolve(const char *name, char ip[16]) /* waiting result event from AT URC, the device default connection timeout is 60 seconds.*/ if (at_socket_event_recv(EC20_EVENT_DOMAIN_OK, rt_tick_from_millisecond(10 * 1000), RT_EVENT_FLAG_OR) < 0) { - LOG_E("Domain resolve failed, wait dns result timeout.", socket); + LOG_E("Domain \"%s\" resolve failed, wait dns result timeout.", name); result = -RT_ETIMEOUT; continue; }