mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-22 06:32:08 +00:00
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>
This commit is contained in:
parent
912eeed9f5
commit
22f0502ed9
5 changed files with 46 additions and 42 deletions
|
@ -601,7 +601,7 @@ batadv_dat_select_candidates(struct batadv_priv *bat_priv, __be32 ip_dst,
|
|||
BATADV_DAT_ADDR_MAX);
|
||||
|
||||
batadv_dbg(BATADV_DBG_DAT, bat_priv,
|
||||
"dat_select_candidates(): IP=%pI4 hash(IP)=%u\n", &ip_dst,
|
||||
"%s(): IP=%pI4 hash(IP)=%u\n", __func__, &ip_dst,
|
||||
ip_key);
|
||||
|
||||
for (select = 0; select < BATADV_DAT_CANDIDATES_NUM; select++)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue