]> git.ipfire.org Git - thirdparty/linux.git/commit
net: hsr: use __func__ instead of hardcoded function name
authorLuka Gejak <luka.gejak@linux.dev>
Thu, 26 Mar 2026 17:46:00 +0000 (18:46 +0100)
committerJakub Kicinski <kuba@kernel.org>
Sun, 29 Mar 2026 21:37:51 +0000 (14:37 -0700)
commit137ac69c15fd2a9acf5d4d95456fe75f23c9ffc5
tree5d2f46b48109b2779f70e68b55fbbf60d3325c9a
parent3e09b370f830d6f00336390a5f622f7202dcd7cc
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>
net/hsr/hsr_forward.c