net: rpl: Print the IPv6 prefix value when checking it

We did not know what IPv6 prefix the stack was using if the
prefix was the same as last time. It is easier to debug
things if the prefix is printed even if it was the same
value as last time.

Change-Id: Ic4bf11df0d8cb588ff0784f044d7702980d8152e
Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
This commit is contained in:
Jukka Rissanen 2016-03-17 15:23:53 +02:00 committed by Gerrit Code Review
commit 3a8655a34d

View file

@ -426,6 +426,9 @@ check_prefix(rpl_prefix_t *last_prefix, rpl_prefix_t *new_prefix)
uip_ipaddr_prefixcmp(&last_prefix->prefix, &new_prefix->prefix, new_prefix->length) && uip_ipaddr_prefixcmp(&last_prefix->prefix, &new_prefix->prefix, new_prefix->length) &&
last_prefix->flags == new_prefix->flags) { last_prefix->flags == new_prefix->flags) {
/* Nothing has changed. */ /* Nothing has changed. */
PRINTF("RPL: same prefix ");
PRINT6ADDR(&new_prefix->prefix);
PRINTF(" len %d flags 0x%x\n", new_prefix->length, new_prefix->flags);
return; return;
} }