summaryrefslogtreecommitdiffstats
path: root/net/batman-adv/send.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/send.c
parent912eeed9f5208515b75103e91ff8b64cfdcca7b9 (diff)
downloadlinux-22f0502ed9f3ae624b0b9a922a067cb6f7e7ce09.tar.gz
linux-22f0502ed9f3ae624b0b9a922a067cb6f7e7ce09.tar.bz2
linux-22f0502ed9f3ae624b0b9a922a067cb6f7e7ce09.zip
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/send.c')
-rw-r--r--net/batman-adv/send.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/net/batman-adv/send.c b/net/batman-adv/send.c
index 403df596a73d..d239a9d72ac3 100644
--- a/net/batman-adv/send.c
+++ b/net/batman-adv/send.c
@@ -971,11 +971,11 @@ batadv_purge_outstanding_packets(struct batadv_priv *bat_priv,
if (hard_iface)
batadv_dbg(BATADV_DBG_BATMAN, bat_priv,
- "purge_outstanding_packets(): %s\n",
- hard_iface->net_dev->name);
+ "%s(): %s\n",
+ __func__, hard_iface->net_dev->name);
else
batadv_dbg(BATADV_DBG_BATMAN, bat_priv,
- "purge_outstanding_packets()\n");
+ "%s()\n", __func__);
/* claim bcast list for free() */
spin_lock_bh(&bat_priv->forw_bcast_list_lock);