summaryrefslogtreecommitdiff
path: root/net/hsr
diff options
context:
space:
mode:
authorLuka Gejak <luka.gejak@linux.dev>2026-03-26 18:46:00 +0100
committerJakub Kicinski <kuba@kernel.org>2026-03-29 14:37:51 -0700
commit137ac69c15fd2a9acf5d4d95456fe75f23c9ffc5 (patch)
tree5d2f46b48109b2779f70e68b55fbbf60d3325c9a /net/hsr
parent3e09b370f830d6f00336390a5f622f7202dcd7cc (diff)
downloadlinux-137ac69c15fd2a9acf5d4d95456fe75f23c9ffc5.tar.gz
linux-137ac69c15fd2a9acf5d4d95456fe75f23c9ffc5.tar.bz2
linux-137ac69c15fd2a9acf5d4d95456fe75f23c9ffc5.zip
net: hsr: use __func__ instead of hardcoded function name
Replace the hardcoded string "hsr_get_untagged_frame" with the standard __func__ macro in netdev_warn_once() call to make the code more robust to refactoring. Signed-off-by: Luka Gejak <luka.gejak@linux.dev> Reviewed-by: Felix Maurer <fmaurer@redhat.com> Link: https://patch.msgid.link/20260326174600.136232-3-luka.gejak@linux.dev Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/hsr')
-rw-r--r--net/hsr/hsr_forward.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/hsr/hsr_forward.c b/net/hsr/hsr_forward.c
index aefc9b6936ba..0aca859c88cb 100644
--- a/net/hsr/hsr_forward.c
+++ b/net/hsr/hsr_forward.c
@@ -184,7 +184,7 @@ struct sk_buff *hsr_get_untagged_frame(struct hsr_frame_info *frame,
create_stripped_skb_hsr(frame->skb_hsr, frame);
else
netdev_warn_once(port->dev,
- "Unexpected frame received in hsr_get_untagged_frame()\n");
+ "Unexpected frame received in %s()\n", __func__);
if (!frame->skb_std)
return NULL;