rework debug output to be more helpful for radio config failures

This commit is contained in:
Andreas Schultz
2016-04-29 08:32:49 +02:00
parent baf1ccbc73
commit 651ccc0d33
3 changed files with 18 additions and 5 deletions

View File

@ -384,7 +384,9 @@ int capwap_sendto(int sock, void* buffer, int size, union sockaddr_capwap* toadd
#ifdef DEBUG
{
char strtoaddr[INET6_ADDRSTRLEN];
log_printf(LOG_DEBUG, "Sent packet to %s:%d with result %d", capwap_address_to_string(toaddr, strtoaddr, INET6_ADDRSTRLEN), (int)CAPWAP_GET_NETWORK_PORT(toaddr), result);
log_printf(LOG_DEBUG, "Sent packet to %s:%d with result %d",
capwap_address_to_string(toaddr, strtoaddr, INET6_ADDRSTRLEN),
(int)CAPWAP_GET_NETWORK_PORT(toaddr), result);
}
#endif