@@ -1190,7 +1190,7 @@ static void ws_bootstrap_pan_advertisement_solicit_analyse(struct protocol_inter
11901190 if (ws_bootstrap_state_discovery (cur ) &&
11911191 cur -> bootsrap_state_machine_cnt > cur -> ws_info -> trickle_params_pan_discovery .Imin + 50 ) {
11921192 cur -> bootsrap_state_machine_cnt = cur -> ws_info -> trickle_params_pan_discovery .Imin + randLIB_get_8bit () % 50 ;
1193- tr_info ("Making parent selection in %d s" , ( uint32_t ) (cur -> bootsrap_state_machine_cnt / 10 ));
1193+ tr_info ("Making parent selection in %u s" , (cur -> bootsrap_state_machine_cnt / 10 ));
11941194 }
11951195}
11961196
@@ -2295,7 +2295,7 @@ static void ws_bootstrap_start_discovery(protocol_interface_info_entry_t *cur)
22952295 cur -> ws_info -> trickle_pan_advertisement_solicit .I , cur -> ws_info -> trickle_pan_advertisement_solicit .t , cur -> ws_info -> trickle_pan_advertisement_solicit .now , cur -> ws_info -> trickle_pan_advertisement_solicit .c );
22962296
22972297 cur -> bootsrap_state_machine_cnt = time_to_solicit + cur -> ws_info -> trickle_params_pan_discovery .Imin + randLIB_get_8bit () % 50 ;
2298- tr_info ("Making parent selection in %d s" , ( uint32_t ) (cur -> bootsrap_state_machine_cnt / 10 ));
2298+ tr_info ("Making parent selection in %u s" , (cur -> bootsrap_state_machine_cnt / 10 ));
22992299}
23002300
23012301// Start authentication
@@ -2356,7 +2356,7 @@ static void ws_bootstrap_authentication_completed(protocol_interface_info_entry_
23562356 // Go back for network scanning
23572357 ws_bootstrap_state_change (cur , ER_ACTIVE_SCAN );
23582358 cur -> bootsrap_state_machine_cnt = randLIB_get_random_in_range (10 , cur -> ws_info -> trickle_params_pan_discovery .Imin >> 1 );
2359- tr_info ("Making parent selection in %d s" , ( uint32_t ) (cur -> bootsrap_state_machine_cnt / 10 ));
2359+ tr_info ("Making parent selection in %u s" , (cur -> bootsrap_state_machine_cnt / 10 ));
23602360 } else {
23612361 tr_debug ("authentication failed" );
23622362 // What else to do to start over again...
@@ -2728,7 +2728,7 @@ void ws_bootstrap_network_scan_process(protocol_interface_info_entry_t *cur)
27282728 if (!selected_parent_ptr ) {
27292729 // Next check will be after one trickle
27302730 cur -> bootsrap_state_machine_cnt += cur -> ws_info -> trickle_params_pan_discovery .Imin + randLIB_get_8bit () % 50 ;
2731- tr_info ("Making parent selection in %d s" , ( uint32_t ) (cur -> bootsrap_state_machine_cnt / 10 ));
2731+ tr_info ("Making parent selection in %u s" , (cur -> bootsrap_state_machine_cnt / 10 ));
27322732 return ;
27332733 }
27342734 tr_info ("selected parent:%s panid %u" , trace_array (selected_parent_ptr -> addr , 8 ), selected_parent_ptr -> pan_id );
0 commit comments