batman-adv: Fix possible side-effects in _batadv_dbg
authorSven Eckelmann <sven@narfation.org>
Wed, 22 Feb 2017 16:16:41 +0000 (17:16 +0100)
committerSimon Wunderlich <sw@simonwunderlich.de>
Thu, 16 Mar 2017 20:14:52 +0000 (21:14 +0100)
commita09c94d07becd85b5be57074fd4553e197ce97a4
treeddbd5d74770ca9778e3f7e9b4cdca5dc7467dd9d
parent1fda4c0ac00353beceb33b524888c3b71432b6d6
batman-adv: Fix possible side-effects in _batadv_dbg

An argument of a macro should not be evaluated multiple times. Otherwise
embedded operations in these arguments will be executed multiple times.

Signed-off-by: Sven Eckelmann <sven@narfation.org>
Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
net/batman-adv/log.h