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:
parent
09ce826789
commit
3a8655a34d
1 changed files with 3 additions and 0 deletions
|
@ -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) &&
|
||||
last_prefix->flags == new_prefix->flags) {
|
||||
/* 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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue