switch everything to new log API and drop old one
This commit is contained in:
@ -36,7 +36,7 @@ void wtp_dfa_state_datacheck_enter(void)
|
||||
/* Send Change State Event request to AC */
|
||||
if (!capwap_crypt_sendto_fragmentpacket(&g_wtp.dtls, g_wtp.requestfragmentpacket)) {
|
||||
/* Error to send packets */
|
||||
capwap_logging_debug("Warning: error to send change state event request packet");
|
||||
log_printf(LOG_DEBUG, "Warning: error to send change state event request packet");
|
||||
wtp_free_reference_last_request();
|
||||
wtp_teardown_connection();
|
||||
|
||||
@ -54,7 +54,7 @@ void wtp_dfa_state_datacheck(struct capwap_parsed_packet* packet)
|
||||
struct capwap_resultcode_element* resultcode;
|
||||
|
||||
if (packet->rxmngpacket->ctrlmsg.type != CAPWAP_CHANGE_STATE_EVENT_RESPONSE) {
|
||||
capwap_logging_debug("Unexpected message %d in state Data Check",
|
||||
log_printf(LOG_DEBUG, "Unexpected message %d in state Data Check",
|
||||
packet->rxmngpacket->ctrlmsg.type);
|
||||
return;
|
||||
}
|
||||
@ -62,12 +62,12 @@ void wtp_dfa_state_datacheck(struct capwap_parsed_packet* packet)
|
||||
/* */
|
||||
binding = GET_WBID_HEADER(packet->rxmngpacket->header);
|
||||
if (binding != g_wtp.binding) {
|
||||
capwap_logging_debug("Change State Event for invalid binding");
|
||||
log_printf(LOG_DEBUG, "Change State Event for invalid binding");
|
||||
return;
|
||||
}
|
||||
|
||||
if (g_wtp.localseqnumber != packet->rxmngpacket->ctrlmsg.seq) {
|
||||
capwap_logging_debug("Configuration Status Response with invalid sequence (%d != %d)",
|
||||
log_printf(LOG_DEBUG, "Configuration Status Response with invalid sequence (%d != %d)",
|
||||
g_wtp.localseqnumber, packet->rxmngpacket->ctrlmsg.seq);
|
||||
return;
|
||||
}
|
||||
@ -83,7 +83,7 @@ void wtp_dfa_state_datacheck(struct capwap_parsed_packet* packet)
|
||||
resultcode = (struct capwap_resultcode_element*)capwap_get_message_element_data(packet,
|
||||
CAPWAP_ELEMENT_RESULTCODE);
|
||||
if (resultcode && !CAPWAP_RESULTCODE_OK(resultcode->code)) {
|
||||
capwap_logging_warning("Receive Data Check Response with error: %d",
|
||||
log_printf(LOG_WARNING, "Receive Data Check Response with error: %d",
|
||||
(int)resultcode->code);
|
||||
wtp_teardown_connection();
|
||||
|
||||
|
Reference in New Issue
Block a user