From c0790aaa5250ade16cc61c7f291c7da5ad6907ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cenk=20G=C3=BCndo=C4=9Fan?= Date: Mon, 11 Apr 2016 01:26:18 +0200 Subject: [PATCH] gnrc_sixlowpan_ctx: use correct member for ctx id in debug --- sys/net/gnrc/network_layer/sixlowpan/ctx/gnrc_sixlowpan_ctx.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/net/gnrc/network_layer/sixlowpan/ctx/gnrc_sixlowpan_ctx.c b/sys/net/gnrc/network_layer/sixlowpan/ctx/gnrc_sixlowpan_ctx.c index 988b71426e..1f1c2757b7 100644 --- a/sys/net/gnrc/network_layer/sixlowpan/ctx/gnrc_sixlowpan_ctx.c +++ b/sys/net/gnrc/network_layer/sixlowpan/ctx/gnrc_sixlowpan_ctx.c @@ -61,7 +61,8 @@ gnrc_sixlowpan_ctx_t *gnrc_sixlowpan_ctx_lookup_addr(const ipv6_addr_t *addr) #if ENABLE_DEBUG if (res != NULL) { - DEBUG("6lo ctx: found context (%u, %s/%" PRIu8 ") ", res->id, + DEBUG("6lo ctx: found context (%u, %s/%" PRIu8 ") ", + (res->flags_id & GNRC_SIXLOWPAN_CTX_FLAGS_CID_MASK), ipv6_addr_to_str(ipv6str, &res->prefix, sizeof(ipv6str)), res->prefix_len); DEBUG("for address %s\n", ipv6_addr_to_str(ipv6str, addr, sizeof(ipv6str)));