mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
gnrc/gnrc_netif_hdr_print: printout timestamp if enabled
Signed-off-by: chudov <chudov@gmail.com>
This commit is contained in:
parent
2863dc9031
commit
516df5cdb6
@ -24,6 +24,11 @@ void gnrc_netif_hdr_print(gnrc_netif_hdr_t *hdr)
|
||||
|
||||
printf("if_pid: %u ", (unsigned) hdr->if_pid);
|
||||
printf("rssi: %d ", (signed) hdr->rssi);
|
||||
#if IS_USED(MODULE_GNRC_NETIF_TIMESTAMP)
|
||||
/* Only last 32 bits are printed due to printf from avg-libc doesn't support 64-bit values */
|
||||
printf(" timestamp: %" PRIu32 ".%09" PRIu32 " ", (uint32_t)(hdr->timestamp / NS_PER_SEC),
|
||||
(uint32_t)(hdr->timestamp % NS_PER_SEC));
|
||||
#endif
|
||||
printf("lqi: %u\n", (unsigned) hdr->lqi);
|
||||
printf("flags: ");
|
||||
|
||||
|
@ -11,6 +11,9 @@ USEMODULE += netdev_ieee802154
|
||||
USEMODULE += netdev_test
|
||||
USEMODULE += od
|
||||
|
||||
# uncomment the line to have and see timestamp in the netif header
|
||||
#USEMODULE += gnrc_netif_timestamp
|
||||
|
||||
# deactivate automatically emitted packets from IPv6 neighbor discovery
|
||||
CFLAGS += -DCONFIG_GNRC_IPV6_NIB_ARSM=0
|
||||
CFLAGS += -DCONFIG_GNRC_IPV6_NIB_SLAAC=0
|
||||
|
Loading…
Reference in New Issue
Block a user