summaryrefslogtreecommitdiffstats
path: root/net/batman-adv/routing.c
diff options
context:
space:
mode:
authorSven Eckelmann <sven@narfation.org>2017-05-19 13:02:00 +0200
committerSimon Wunderlich <sw@simonwunderlich.de>2017-05-23 14:34:31 +0200
commit22f0502ed9f3ae624b0b9a922a067cb6f7e7ce09 (patch)
tree04e47cd27136157ac04d869388c74ea038858d96 /net/batman-adv/routing.c
parent912eeed9f5208515b75103e91ff8b64cfdcca7b9 (diff)
downloadlinux-22f0502ed9f3ae624b0b9a922a067cb6f7e7ce09.tar.bz2
batman-adv: Print correct function names in dbg messages
The function names in batman-adv changed slightly in the past. But some of the debug messages were not updated correctly and therefore some messages were incorrect. To avoid this in the future, these kind of messages should use __func__ to automatically print the correct function name. Signed-off-by: Sven Eckelmann <sven@narfation.org> Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
Diffstat (limited to 'net/batman-adv/routing.c')
-rw-r--r--net/batman-adv/routing.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/batman-adv/routing.c b/net/batman-adv/routing.c
index e1ebe14ee2a6..1338b9221613 100644
--- a/net/batman-adv/routing.c
+++ b/net/batman-adv/routing.c
@@ -985,8 +985,8 @@ int batadv_recv_unicast_packet(struct sk_buff *skb,
batadv_orig_node_put(orig_node_gw);
if (is_gw) {
batadv_dbg(BATADV_DBG_BLA, bat_priv,
- "recv_unicast_packet(): Dropped unicast pkt received from another backbone gw %pM.\n",
- orig_addr_gw);
+ "%s(): Dropped unicast pkt received from another backbone gw %pM.\n",
+ __func__, orig_addr_gw);
return NET_RX_DROP;
}
}