@@ -1190,7 +1190,7 @@ static void ws_bootstrap_pan_advertisement_solicit_analyse(struct protocol_inter
1190
1190
if (ws_bootstrap_state_discovery (cur ) &&
1191
1191
cur -> bootsrap_state_machine_cnt > cur -> ws_info -> trickle_params_pan_discovery .Imin + 50 ) {
1192
1192
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 ));
1194
1194
}
1195
1195
}
1196
1196
@@ -2295,7 +2295,7 @@ static void ws_bootstrap_start_discovery(protocol_interface_info_entry_t *cur)
2295
2295
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 );
2296
2296
2297
2297
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 ));
2299
2299
}
2300
2300
2301
2301
// Start authentication
@@ -2356,7 +2356,7 @@ static void ws_bootstrap_authentication_completed(protocol_interface_info_entry_
2356
2356
// Go back for network scanning
2357
2357
ws_bootstrap_state_change (cur , ER_ACTIVE_SCAN );
2358
2358
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 ));
2360
2360
} else {
2361
2361
tr_debug ("authentication failed" );
2362
2362
// What else to do to start over again...
@@ -2728,7 +2728,7 @@ void ws_bootstrap_network_scan_process(protocol_interface_info_entry_t *cur)
2728
2728
if (!selected_parent_ptr ) {
2729
2729
// Next check will be after one trickle
2730
2730
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 ));
2732
2732
return ;
2733
2733
}
2734
2734
tr_info ("selected parent:%s panid %u" , trace_array (selected_parent_ptr -> addr , 8 ), selected_parent_ptr -> pan_id );
0 commit comments