]> git.ipfire.org Git - thirdparty/linux.git/commit
netpoll: expose netpoll logging macros in public header
authorBreno Leitao <leitao@debian.org>
Fri, 13 Jun 2025 11:31:31 +0000 (04:31 -0700)
committerJakub Kicinski <kuba@kernel.org>
Mon, 16 Jun 2025 22:18:33 +0000 (15:18 -0700)
commitafb023329c07af7a9144901a1dad3a80d9e177b1
tree2f846b2db82cedcd87ce7fc9c9b9268f43e1bbd7
parent260948993a9f99428f801dcb40654205e74aaa47
netpoll: expose netpoll logging macros in public header

Move np_info(), np_err(), and np_notice() macros from internal
implementation to the public netpoll header file to make them
available for use by netpoll consumers.

These logging macros provide consistent formatting for netpoll-related
messages by automatically prefixing log output with the netpoll instance
name.

The goal is to use the exact same format that is being displayed today,
instead of creating something netconsole-specific.

Signed-off-by: Breno Leitao <leitao@debian.org>
Link: https://patch.msgid.link/20250613-rework-v3-2-0752bf2e6912@debian.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/linux/netpoll.h
net/core/netpoll.c