OSDN Git Service

netlink: add support for formatted extack messages
authorEdward Cree <ecree.xilinx@gmail.com>
Tue, 18 Oct 2022 14:37:27 +0000 (15:37 +0100)
committerJakub Kicinski <kuba@kernel.org>
Wed, 19 Oct 2022 20:00:04 +0000 (13:00 -0700)
commit51c352bdbcd23d7ce46b06c1e64c82754dc44044
tree9bd79cfe375349b5afa3be84fe04a27ae0c8e791
parenta526a3cc9c8d426713f8bebc18ebbe39a8495d82
netlink: add support for formatted extack messages

Include an 80-byte buffer in struct netlink_ext_ack that can be used
 for scnprintf()ed messages.  This does mean that the resulting string
 can't be enumerated, translated etc. in the way NL_SET_ERR_MSG() was
 designed to allow.

Signed-off-by: Edward Cree <ecree.xilinx@gmail.com>
Reviewed-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/linux/netlink.h