netconsole: Enable compile time configuration
authorBreno Leitao <leitao@debian.org>
Fri, 11 Aug 2023 09:31:58 +0000 (02:31 -0700)
committerJakub Kicinski <kuba@kernel.org>
Fri, 18 Aug 2023 02:25:42 +0000 (19:25 -0700)
commitfad361a2ee9099028774ff9081bf9abf08bd2ff0
tree36ec2eaa2fdbf1d83ab14992a6a60e407f1ab29c
parentb0a9e2c9a99f64e3c59e8a32a11b90c667201203
netconsole: Enable compile time configuration

Enable netconsole features to be set at compilation time. Create two
Kconfig options that allow users to set extended logs and release
prepending features at compilation time.

Right now, the user needs to pass command line parameters to netconsole,
such as "+"/"r" to enable extended logs and version prepending features.

With these two options, the user could set the default values for the
features at compile time, and don't need to pass it in the command line
to get them enabled, simplifying the command line.

Signed-off-by: Breno Leitao <leitao@debian.org>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://lore.kernel.org/r/20230811093158.1678322-3-leitao@debian.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/Kconfig
drivers/net/netconsole.c