Skip to content

Commit 6962f42

Browse files
author
Mika Leppänen
committed
Corrected traces
1 parent ff765cf commit 6962f42

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

source/6LoWPAN/ws/ws_pae_auth.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ int8_t ws_pae_auth_node_access_revoke_start(protocol_interface_info_entry_t *int
361361
// If active GTK lifetime is larger than revocation lifetime decrements active GTK lifetime
362362
if (active_lifetime > revocation_lifetime) {
363363
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);
365365
} else {
366366
// Otherwise decrements lifetime of the GTK to be installed after the active one
367367
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
372372
uint32_t second_lifetime = sec_prot_keys_gtk_lifetime_get(pae_auth->gtks, second_index);
373373
if (second_lifetime > second_revocation_lifetime) {
374374
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);
376376
}
377377
// Removes other keys than active and GTK to be installed next
378378
not_removed_index = second_index;
@@ -547,11 +547,11 @@ void ws_pae_auth_slow_timer(uint16_t seconds)
547547
if (pae_auth->gtk_new_inst_req_exp) {
548548
int8_t second_index = sec_prot_keys_gtk_install_order_second_index_get(pae_auth->gtks);
549549
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);
551551
ws_pae_auth_gtk_key_insert(pae_auth);
552552
ws_pae_auth_network_keys_from_gtks_set(pae_auth);
553553
} 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);
555555
}
556556
}
557557
}
@@ -560,7 +560,7 @@ void ws_pae_auth_slow_timer(uint16_t seconds)
560560
pae_auth->gtk_new_act_time_exp = ws_pae_timers_gtk_new_activation_time(pae_auth->timer_settings, timer_seconds);
561561
if (pae_auth->gtk_new_act_time_exp) {
562562
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);
564564
if (new_active_index >= 0) {
565565
ws_pae_auth_network_key_index_set(pae_auth, new_active_index);
566566
}
@@ -571,7 +571,7 @@ void ws_pae_auth_slow_timer(uint16_t seconds)
571571
}
572572

573573
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);
575575
ws_pae_auth_gtk_clear(pae_auth, i);
576576
ws_pae_auth_network_keys_from_gtks_set(pae_auth);
577577
}
@@ -621,7 +621,7 @@ static void ws_pae_auth_gtk_key_insert(pae_auth_t *pae_auth)
621621
// Authenticator keys are always fresh
622622
sec_prot_keys_gtk_status_all_fresh_set(pae_auth->gtks);
623623

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);
625625
}
626626

627627
static int8_t ws_pae_auth_new_gtk_activate(pae_auth_t *pae_auth)

0 commit comments

Comments
 (0)