diff options
| author | Breno Leitao <[email protected]> | 2024-10-14 10:02:10 +0000 |
|---|---|---|
| committer | Andrew Morton <[email protected]> | 2024-11-06 01:12:32 +0000 |
| commit | 1bb5d6609767b631526a95446198e5f436159bea (patch) | |
| tree | 686b7a5f20998b4e96eb3fb8d7c02d0276d8aa85 /scripts/decode_stacktrace.sh | |
| parent | lib/Makefile: make union-find compilation conditional on CONFIG_CPUSETS (diff) | |
| download | kernel-1bb5d6609767b631526a95446198e5f436159bea.tar.gz kernel-1bb5d6609767b631526a95446198e5f436159bea.zip | |
scripts/decode_stacktrace.sh: remove trailing space
decode_stacktrace.sh adds a trailing space at the end of the decoded stack
if the module is not set (in most of the lines), which makes the some
lines of the stack having trailing space and some others not.
Do not add an extra space at the end of the line if module is not set,
adding consistency in output formatting.
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Breno Leitao <[email protected]>
Reviewed-by: Elliot Berman <[email protected]>
Reviewed-by: Carlos Llamas <[email protected]>
Reviewed-by: Stephen Boyd <[email protected]>
Cc: Bjorn Andersson <[email protected]>
Cc: Luca Ceresoli <[email protected]>
Cc: Xiong Nandi <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'scripts/decode_stacktrace.sh')
| -rwxr-xr-x | scripts/decode_stacktrace.sh | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/scripts/decode_stacktrace.sh b/scripts/decode_stacktrace.sh index 826836d264c6..46fa18b80fc1 100755 --- a/scripts/decode_stacktrace.sh +++ b/scripts/decode_stacktrace.sh @@ -311,7 +311,12 @@ handle_line() { parse_symbol # modifies $symbol # Add up the line number to the symbol - echo "${words[@]}" "$symbol $module" + if [[ -z ${module} ]] + then + echo "${words[@]}" "$symbol" + else + echo "${words[@]}" "$symbol $module" + fi } while read line; do |
