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