From f654c1e1a1ee38ee81555242b5aae5733596aecb Mon Sep 17 00:00:00 2001 From: Oleg Hahm Date: Wed, 16 Sep 2015 03:41:25 +0200 Subject: [PATCH] sniffer: switch to xtimer --- sniffer/Makefile | 1 + sniffer/main.c | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/sniffer/Makefile b/sniffer/Makefile index 8ac06b30c1..519bbb0d66 100644 --- a/sniffer/Makefile +++ b/sniffer/Makefile @@ -14,6 +14,7 @@ USEMODULE += auto_init_gnrc_netif USEMODULE += shell USEMODULE += shell_commands USEMODULE += ps +USEMODULE += xtimer # Change this to 0 show compiler invocation lines by default: QUIET ?= 1 diff --git a/sniffer/main.c b/sniffer/main.c index 9aa14ea71d..4ae1ff1d05 100644 --- a/sniffer/main.c +++ b/sniffer/main.c @@ -22,7 +22,7 @@ #include #include "thread.h" -#include "hwtimer.h" +#include "xtimer.h" #include "shell.h" #include "shell_commands.h" #include "net/gnrc.h" @@ -49,8 +49,8 @@ void dump_pkt(gnrc_pktsnip_t *pkt) { gnrc_pktsnip_t *snip = pkt; - printf("rftest-rx --- len 0x%02x lqi 0x%02x rx_time 0x%08lx\n\n", - gnrc_pkt_len(pkt), 0, hwtimer_now()); + printf("rftest-rx --- len 0x%02x lqi 0x%02x rx_time 0x%08" PRIx64 "\n\n", + gnrc_pkt_len(pkt), 0, xtimer_now64()); while (snip) { for (size_t i = 0; i < snip->size; i++) {