From 42c4cb94e02851d67fe9082fb2d97dcc50b16b78 Mon Sep 17 00:00:00 2001 From: Garret Kelly Date: Thu, 22 Sep 2016 10:47:51 -0400 Subject: [PATCH] rpl: fix debugging PRINTF in find_removable_dio --- core/net/rpl/rpl-nbr-policy.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/net/rpl/rpl-nbr-policy.c b/core/net/rpl/rpl-nbr-policy.c index 0af5a9041..d10de973e 100644 --- a/core/net/rpl/rpl-nbr-policy.c +++ b/core/net/rpl/rpl-nbr-policy.c @@ -203,13 +203,13 @@ find_removable_dio(uip_ipaddr_t *from, rpl_dio_t *dio) if(dio->rank + instance->min_hoprankinc < worst_rank - instance->min_hoprankinc / 2) { /* Found *great* neighbor - add! */ PRINTF("Found better neighbor %d < %d - add to cache...\n", - rank, worst_rank); + dio->rank, worst_rank); return worst_rank_nbr; } PRINTF("Found worse neighbor with new %d and old %d - NOT add to cache.\n", - rank, worst_rank); + dio->rank, worst_rank); return NULL; } /*---------------------------------------------------------------------------*/