@@ -361,7 +361,7 @@ int8_t ws_pae_auth_node_access_revoke_start(protocol_interface_info_entry_t *int
361
361
// If active GTK lifetime is larger than revocation lifetime decrements active GTK lifetime
362
362
if (active_lifetime > revocation_lifetime ) {
363
363
sec_prot_keys_gtk_lifetime_decrement (pae_auth -> gtks , active_index , active_lifetime - revocation_lifetime );
364
- tr_info ("Access revocation start, GTK active index: %i, revoked lifetime: %i " , active_index , revocation_lifetime );
364
+ tr_info ("Access revocation start, GTK active index: %i, revoked lifetime: %" PRIu32 " " , active_index , revocation_lifetime );
365
365
} else {
366
366
// Otherwise decrements lifetime of the GTK to be installed after the active one
367
367
int8_t second_index = sec_prot_keys_gtk_install_order_second_index_get (pae_auth -> gtks );
@@ -372,7 +372,7 @@ int8_t ws_pae_auth_node_access_revoke_start(protocol_interface_info_entry_t *int
372
372
uint32_t second_lifetime = sec_prot_keys_gtk_lifetime_get (pae_auth -> gtks , second_index );
373
373
if (second_lifetime > second_revocation_lifetime ) {
374
374
sec_prot_keys_gtk_lifetime_decrement (pae_auth -> gtks , second_index , second_lifetime - second_revocation_lifetime );
375
- tr_info ("Access revocation start, GTK second active index: %i, revoked lifetime: %i " , second_index , second_revocation_lifetime );
375
+ tr_info ("Access revocation start, GTK second active index: %i, revoked lifetime: %" PRIu32 " " , second_index , second_revocation_lifetime );
376
376
}
377
377
// Removes other keys than active and GTK to be installed next
378
378
not_removed_index = second_index ;
@@ -547,11 +547,11 @@ void ws_pae_auth_slow_timer(uint16_t seconds)
547
547
if (pae_auth -> gtk_new_inst_req_exp ) {
548
548
int8_t second_index = sec_prot_keys_gtk_install_order_second_index_get (pae_auth -> gtks );
549
549
if (second_index < 0 ) {
550
- tr_info ("GTK new install required active index: %i, time: %i , system time: %i " , active_index , timer_seconds , protocol_core_monotonic_time / 10 );
550
+ tr_info ("GTK new install required active index: %i, time: %" PRIu32 " , system time: %" PRIu32 " " , active_index , timer_seconds , protocol_core_monotonic_time / 10 );
551
551
ws_pae_auth_gtk_key_insert (pae_auth );
552
552
ws_pae_auth_network_keys_from_gtks_set (pae_auth );
553
553
} else {
554
- tr_info ("GTK new install already done; second index: %i, time: %i , system time: %i " , second_index , timer_seconds , protocol_core_monotonic_time / 10 );
554
+ tr_info ("GTK new install already done; second index: %i, time: %" PRIu32 " , system time: %" PRIu32 " " , second_index , timer_seconds , protocol_core_monotonic_time / 10 );
555
555
}
556
556
}
557
557
}
@@ -560,7 +560,7 @@ void ws_pae_auth_slow_timer(uint16_t seconds)
560
560
pae_auth -> gtk_new_act_time_exp = ws_pae_timers_gtk_new_activation_time (pae_auth -> timer_settings , timer_seconds );
561
561
if (pae_auth -> gtk_new_act_time_exp ) {
562
562
int8_t new_active_index = ws_pae_auth_new_gtk_activate (pae_auth );
563
- tr_info ("GTK new activation time active index: %i, time: %i , new index: %i, system time: %i " , active_index , timer_seconds , new_active_index , protocol_core_monotonic_time / 10 );
563
+ tr_info ("GTK new activation time active index: %i, time: %" PRIu32 " , new index: %i, system time: %" PRIu32 " " , active_index , timer_seconds , new_active_index , protocol_core_monotonic_time / 10 );
564
564
if (new_active_index >= 0 ) {
565
565
ws_pae_auth_network_key_index_set (pae_auth , new_active_index );
566
566
}
@@ -571,7 +571,7 @@ void ws_pae_auth_slow_timer(uint16_t seconds)
571
571
}
572
572
573
573
if (timer_seconds == 0 ) {
574
- tr_info ("GTK expired index: %i, system time: %i " , i , protocol_core_monotonic_time / 10 );
574
+ tr_info ("GTK expired index: %i, system time: %" PRIu32 " " , i , protocol_core_monotonic_time / 10 );
575
575
ws_pae_auth_gtk_clear (pae_auth , i );
576
576
ws_pae_auth_network_keys_from_gtks_set (pae_auth );
577
577
}
@@ -621,7 +621,7 @@ static void ws_pae_auth_gtk_key_insert(pae_auth_t *pae_auth)
621
621
// Authenticator keys are always fresh
622
622
sec_prot_keys_gtk_status_all_fresh_set (pae_auth -> gtks );
623
623
624
- tr_info ("GTK install new index: %i, lifetime: %i " , install_index , lifetime );
624
+ tr_info ("GTK install new index: %i, lifetime: %" PRIu32 " " , install_index , lifetime );
625
625
}
626
626
627
627
static int8_t ws_pae_auth_new_gtk_activate (pae_auth_t * pae_auth )
0 commit comments