From 506c97c4d91ccd4b8a7df29993b83b13928edff9 Mon Sep 17 00:00:00 2001 From: Hauke Petersen Date: Thu, 19 Mar 2015 18:18:16 +0100 Subject: [PATCH] shell/sc_netif: fixed output of PAN ID for decimal --- sys/shell/commands/sc_netif.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/shell/commands/sc_netif.c b/sys/shell/commands/sc_netif.c index 9d57bb4f6b..21b75026cf 100644 --- a/sys/shell/commands/sc_netif.c +++ b/sys/shell/commands/sc_netif.c @@ -168,7 +168,7 @@ void _netif_list(kernel_pid_t dev) res = ng_netapi_get(dev, NETCONF_OPT_NID, 0, &u16, sizeof(u16)); if (res >= 0) { - printf(" NID: %" PRIx16 " ", u16); + printf(" NID: 0x%" PRIx16 " ", u16); } printf("\n "); @@ -184,7 +184,7 @@ void _netif_list(kernel_pid_t dev) res = ng_netapi_get(dev, NETCONF_OPT_SRC_LEN, 0, &u16, sizeof(u16)); if (res >= 0) { - printf("Source address length: %" PRIx16 "\n ", u16); + printf("Source address length: %" PRIu16 "\n ", u16); } /* TODO: list IPv6 info */