Skip to content

Commit 1bb5d66

Browse files
leitaoakpm00
authored andcommitted
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]>
1 parent bf9850f commit 1bb5d66

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

scripts/decode_stacktrace.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,12 @@ handle_line() {
311311
parse_symbol # modifies $symbol
312312

313313
# Add up the line number to the symbol
314-
echo "${words[@]}" "$symbol $module"
314+
if [[ -z ${module} ]]
315+
then
316+
echo "${words[@]}" "$symbol"
317+
else
318+
echo "${words[@]}" "$symbol $module"
319+
fi
315320
}
316321

317322
while read line; do

0 commit comments

Comments
 (0)