]> www.infradead.org Git - users/jedix/linux-maple.git/commit
netconsole: refactor CPU number formatting into separate function
authorBreno Leitao <leitao@debian.org>
Fri, 28 Feb 2025 12:50:19 +0000 (04:50 -0800)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 4 Mar 2025 14:28:27 +0000 (15:28 +0100)
commit4d989521a93bcabce7c18060d5cf98a207d56cbe
treec5afed0bb47546df358cc826ff37222cc8bb147c
parentefb878fbe8d1fae3bf1974628e6d267dc861207e
netconsole: refactor CPU number formatting into separate function

Extract CPU number formatting logic from prepare_extradata() into a new
append_cpu_nr() function.

This refactoring improves code organization by isolating CPU number
formatting into its own function while reducing the complexity of
prepare_extradata().

The change prepares the codebase for the upcoming taskname feature by
establishing a consistent pattern for handling sysdata features.

The CPU number formatting logic itself remains unchanged; only its
location has moved to improve maintainability.

Signed-off-by: Breno Leitao <leitao@debian.org>
Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/netconsole.c