mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
Merge pull request #9603 from miri64/gnrc_mac/fix/print-formatting
gnrc: mac: fix types according to print formatting
This commit is contained in:
commit
0d3af49278
@ -1456,7 +1456,7 @@ static void _gomach_phase_backoff(gnrc_netif_t *netif)
|
||||
gnrc_gomach_update_neighbor_phase(netif);
|
||||
|
||||
LOG_INFO("INFO: [GOMACH] phase backoffed: %lu us.\n",
|
||||
netif->mac.prot.gomach.backoff_phase_us);
|
||||
(unsigned long)netif->mac.prot.gomach.backoff_phase_us);
|
||||
}
|
||||
|
||||
static void gomach_listen_init(gnrc_netif_t *netif)
|
||||
@ -1993,7 +1993,8 @@ static void _gomach_msg_handler(gnrc_netif_t *netif, msg_t *msg)
|
||||
duty = xtimer_now_usec64();
|
||||
duty = (netif->mac.prot.gomach.awake_duration_sum_ticks) * 100 /
|
||||
(duty - netif->mac.prot.gomach.system_start_time_ticks);
|
||||
printf("[GoMacH]: achieved radio duty-cycle: %lu %% \n", (uint32_t)duty);
|
||||
printf("[GoMacH]: achieved radio duty-cycle: %lu %% \n",
|
||||
(unsigned long)duty);
|
||||
break;
|
||||
}
|
||||
#endif
|
||||
|
@ -304,7 +304,8 @@ void lwmac_set_state(gnrc_netif_t *netif, gnrc_lwmac_state_t newstate)
|
||||
alarm = random_uint32_range(RTT_US_TO_TICKS((3 * GNRC_LWMAC_WAKEUP_DURATION_US / 2)),
|
||||
RTT_US_TO_TICKS(GNRC_LWMAC_WAKEUP_INTERVAL_US -
|
||||
(3 * GNRC_LWMAC_WAKEUP_DURATION_US / 2)));
|
||||
LOG_WARNING("WARNING: [LWMAC] phase backoffed: %lu us\n", RTT_TICKS_TO_US(alarm));
|
||||
LOG_WARNING("WARNING: [LWMAC] phase backoffed: %lu us\n",
|
||||
(unsigned long)RTT_TICKS_TO_US(alarm));
|
||||
netif->mac.prot.lwmac.last_wakeup = netif->mac.prot.lwmac.last_wakeup + alarm;
|
||||
alarm = _next_inphase_event(netif->mac.prot.lwmac.last_wakeup,
|
||||
RTT_US_TO_TICKS(GNRC_LWMAC_WAKEUP_INTERVAL_US));
|
||||
|
@ -461,7 +461,8 @@ static bool _send_data(gnrc_netif_t *netif)
|
||||
/* Packet has been released by netdev, so drop pointer */
|
||||
netif->mac.tx.packet = NULL;
|
||||
|
||||
DEBUG("[LWMAC-tx]: spent %lu WR in TX\n", netif->mac.tx.wr_sent);
|
||||
DEBUG("[LWMAC-tx]: spent %lu WR in TX\n",
|
||||
(unsigned long)netif->mac.tx.wr_sent);
|
||||
|
||||
#if (LWMAC_ENABLE_DUTYCYLE_RECORD == 1)
|
||||
netif->mac.prot.lwmac.pkt_start_sending_time_ticks =
|
||||
|
Loading…
Reference in New Issue
Block a user