diff options
author | 2025-02-28 04:50:19 -0800 | |
---|---|---|
committer | 2025-03-04 15:28:27 +0100 | |
commit | 4d989521a93bcabce7c18060d5cf98a207d56cbe (patch) | |
tree | c5afed0bb47546df358cc826ff37222cc8bb147c /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | netconsole: Make boolean comparison consistent (diff) | |
download | wireguard-linux-4d989521a93bcabce7c18060d5cf98a207d56cbe.tar.xz wireguard-linux-4d989521a93bcabce7c18060d5cf98a207d56cbe.zip |
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>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions