Merge pull request #33 from Simon-Leung/master

Fix log bug in "ec20_domain_resolve" fuction.
This commit is contained in:
朱天龙 (Armink) 2018-12-22 14:15:51 +08:00 committed by GitHub
commit 3077f5b7ca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}