batman-adv: Fix consistency of update route messages
authorSven Eckelmann <sven@narfation.org>
Wed, 29 Jun 2016 21:45:57 +0000 (23:45 +0200)
committerSimon Wunderlich <sw@simonwunderlich.de>
Tue, 9 Aug 2016 05:54:34 +0000 (07:54 +0200)
commitb5dcbad25219b82408e15e6d775a406be2116af1
treecff945986474becdfcd6b4ea62153ee66779f0df
parent4d7de48c797c9207412da4e350c5170617eaf8c7
batman-adv: Fix consistency of update route messages

The debug messages of _batadv_update_route were printed before the actual
route change is done. At this point it is not really known which
curr_router will be replaced. Thus the messages could print the wrong
operation.

Printing the debug messages after the operation was done avoids this
problem.

Signed-off-by: Sven Eckelmann <sven@narfation.org>
Signed-off-by: Marek Lindner <mareklindner@neomailbox.ch>
Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
net/batman-adv/routing.c