@@ -1189,7 +1189,7 @@ static void ws_bootstrap_pan_advertisement_solicit_analyse(struct protocol_inter
11891189 if (ws_bootstrap_state_discovery (cur ) &&
11901190 cur -> bootsrap_state_machine_cnt > cur -> ws_info -> trickle_params_pan_discovery .Imin + 50 ) {
11911191 cur -> bootsrap_state_machine_cnt = cur -> ws_info -> trickle_params_pan_discovery .Imin + randLIB_get_8bit () % 50 ;
1192- tr_info ("Making parent selection in %d s" , ( uint32_t ) (cur -> bootsrap_state_machine_cnt / 10 ));
1192+ tr_info ("Making parent selection in %u s" , (cur -> bootsrap_state_machine_cnt / 10 ));
11931193 }
11941194}
11951195
@@ -2294,7 +2294,7 @@ static void ws_bootstrap_start_discovery(protocol_interface_info_entry_t *cur)
22942294 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 );
22952295
22962296 cur -> bootsrap_state_machine_cnt = time_to_solicit + cur -> ws_info -> trickle_params_pan_discovery .Imin + randLIB_get_8bit () % 50 ;
2297- tr_info ("Making parent selection in %d s" , ( uint32_t ) (cur -> bootsrap_state_machine_cnt / 10 ));
2297+ tr_info ("Making parent selection in %u s" , (cur -> bootsrap_state_machine_cnt / 10 ));
22982298}
22992299
23002300// Start authentication
@@ -2355,7 +2355,7 @@ static void ws_bootstrap_authentication_completed(protocol_interface_info_entry_
23552355 // Go back for network scanning
23562356 ws_bootstrap_state_change (cur , ER_ACTIVE_SCAN );
23572357 cur -> bootsrap_state_machine_cnt = randLIB_get_random_in_range (10 , cur -> ws_info -> trickle_params_pan_discovery .Imin >> 1 );
2358- tr_info ("Making parent selection in %d s" , ( uint32_t ) (cur -> bootsrap_state_machine_cnt / 10 ));
2358+ tr_info ("Making parent selection in %u s" , (cur -> bootsrap_state_machine_cnt / 10 ));
23592359 } else {
23602360 tr_debug ("authentication failed" );
23612361 // What else to do to start over again...
@@ -2727,7 +2727,7 @@ void ws_bootstrap_network_scan_process(protocol_interface_info_entry_t *cur)
27272727 if (!selected_parent_ptr ) {
27282728 // Next check will be after one trickle
27292729 cur -> bootsrap_state_machine_cnt += cur -> ws_info -> trickle_params_pan_discovery .Imin + randLIB_get_8bit () % 50 ;
2730- tr_info ("Making parent selection in %d s" , ( uint32_t ) (cur -> bootsrap_state_machine_cnt / 10 ));
2730+ tr_info ("Making parent selection in %u s" , (cur -> bootsrap_state_machine_cnt / 10 ));
27312731 return ;
27322732 }
27332733 tr_info ("selected parent:%s panid %u" , trace_array (selected_parent_ptr -> addr , 8 ), selected_parent_ptr -> pan_id );
0 commit comments