]> www.infradead.org Git - users/hch/misc.git/commit
net: netconsole: append userdata to netconsole messages
authorMatthew Wood <thepacketgeek@gmail.com>
Sun, 4 Feb 2024 23:27:38 +0000 (15:27 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 9 Feb 2024 10:23:46 +0000 (10:23 +0000)
commitb4ab4f2c0ff5f6b5aeccd71c5caeef2cbcfea47d
tree8c0936a670088654d36c571b59bbc00077357853
parentdf03f830d099f0811281a222aefdd9d400fa0b72
net: netconsole: append userdata to netconsole messages

Append userdata to outgoing unfragmented (<1000 bytes) netconsole messages.
When sending messages the userdata string is already formatted and stored
in netconsole_target->userdata_complete.

Always write the outgoing message to buf, so userdata can be appended in
a standard fashion. This is a change from only using buf when the
release needs to be prepended to the message.

Co-developed-by: Breno Leitao <leitao@debian.org>
Signed-off-by: Breno Leitao <leitao@debian.org>
Signed-off-by: Matthew Wood <thepacketgeek@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/netconsole.c