This fixes: CC iwpan-interface.o interface.c: In function ‘print_iface_handler’: interface.c:206:10: warning: format ‘%llx’ expects argument of type ‘long long unsigned int’, but argument 3 has type ‘uint64_t’ [-Wformat=] le64toh(nla_get_u64(tb_msg[NL802154_ATTR_EXTENDED_ADDR]))); ^ Signed-off-by: Guido Günther <agx@xxxxxxxxxxx> --- src/interface.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/interface.c b/src/interface.c index 904b96e..5e0ef89 100644 --- a/src/interface.c +++ b/src/interface.c @@ -2,6 +2,7 @@ #include <errno.h> #include <string.h> #include <stdbool.h> +#include <inttypes.h> #include <netlink/genl/genl.h> #include <netlink/genl/family.h> @@ -202,7 +203,7 @@ static int print_iface_handler(struct nl_msg *msg, void *arg) printf("%s\twpan_dev 0x%llx\n", indent, (unsigned long long)nla_get_u64(tb_msg[NL802154_ATTR_WPAN_DEV])); if (tb_msg[NL802154_ATTR_EXTENDED_ADDR]) - printf("%s\textended_addr 0x%016llx\n", indent, + printf("%s\textended_addr 0x%016" PRIu64 "\n", indent, le64toh(nla_get_u64(tb_msg[NL802154_ATTR_EXTENDED_ADDR]))); if (tb_msg[NL802154_ATTR_SHORT_ADDR]) printf("%s\tshort_addr 0x%04x\n", indent, -- 2.1.4 -- To unsubscribe from this list: send the line "unsubscribe linux-wpan" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html