Skip to content

Commit f8c9d54

Browse files
author
Arto Kinnunen
authored
Adjust tracing (ARMmbed#2138)
-Change trace level in few traces -Use proper data type when saving rate limit
1 parent 678eaf8 commit f8c9d54

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

source/6LoWPAN/Thread/thread_nd.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ static void thread_nd_coap_notification_callback(int8_t interface_id, const uint
149149
if (old_entry_rloc != loc_addr) {
150150
uint8_t old_entry_ip[16];
151151
thread_addr_write_mesh_local_16(old_entry_ip, common_read_16_bit(entry->ll_address + 2), cur->thread_info);
152-
tr_warn("Proactive address change %s %04x->%04x", trace_ipv6(ip_addr), old_entry_rloc, loc_addr);
152+
tr_info("Proactive address change %s %04x->%04x", trace_ipv6(ip_addr), old_entry_rloc, loc_addr);
153153
thread_resolution_client_address_error(interface_id, old_entry_ip, ip_addr, ml_eid);
154154
}
155155
}

source/6LoWPAN/ws/ws_bootstrap.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -962,7 +962,7 @@ static void ws_bootstrap_pan_advertisement_analyse(struct protocol_interface_inf
962962
// If pan cost is the same then we select the one we hear highest
963963
if (current_pan_cost == pan_cost &&
964964
cur->ws_info->parent_info.signal_dbm > data->signal_dbm) {
965-
tr_info("EAPOL target dropped Lower link quality %u < %u current", data->signal_dbm, cur->ws_info->parent_info.signal_dbm);
965+
tr_info("EAPOL target dropped Lower link quality %d < %d current", data->signal_dbm, cur->ws_info->parent_info.signal_dbm);
966966
return;
967967
}
968968
}

source/DHCPv6_client/dhcpv6_client_service.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,7 @@ void dhcpv6_renew(protocol_interface_info_entry_t *interface, if_address_entry_t
451451
// Default retry values are modified from specification update to message
452452
dhcp_service_set_retry_timers(srv_data_ptr->transActionId, dhcp_client.sol_timeout, dhcp_client.sol_max_rt, dhcp_client.sol_max_rc);
453453
}
454-
tr_error("DHCP renew send OK");
454+
tr_info("DHCP renew send OK");
455455
}
456456

457457
static bool dhcpv6_client_set_address(int8_t interface_id, dhcpv6_client_server_data_t *srv_data_ptr)

source/MAC/IEEE802_15_4/mac_mcps_sap.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ static void mac_pd_data_confirm_failure_handle(protocol_interface_rf_mac_setup_s
7474

7575
static int8_t mac_tasklet_event_handler = -1;
7676

77-
static uint32_t ns_dyn_mem_rate_limiting_threshold = 0xFFFFFFFF;
77+
static ns_mem_heap_size_t ns_dyn_mem_rate_limiting_threshold = 0xFFFFFFFF;
7878

7979
/**
8080
* Get PHY time stamp.

source/libDHCPv6/dhcp_service_api.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -829,7 +829,7 @@ void dhcp_service_send_message(msg_tr_t *msg_tr_ptr)
829829
if (retval != 0) {
830830
tr_warn("dhcp service socket_sendto fails: %i", retval);
831831
} else {
832-
tr_warn("dhcp service socket_sendto %s", trace_ipv6(msg_tr_ptr->addr.address));
832+
tr_debug("dhcp service socket_sendto %s", trace_ipv6(msg_tr_ptr->addr.address));
833833
}
834834
}
835835
bool dhcp_service_timer_tick(uint16_t ticks)

0 commit comments

Comments
 (0)