Skip to contentSkip to conversation

scripts-decode_stacktracesh-remove-trailing-space.patch removed from -mm tree

merged mm-nonmm-stable Andrew Morton 1 participant 1 message Nov 6, 2024

lore
Share & tools
lore

Andrew Morton

author tree notice Applied
#0 lore raw

The quilt patch titled
Subject: scripts/decode_stacktrace.sh: remove trailing space
has been removed from the -mm tree. Its filename was
scripts-decode_stacktracesh-remove-trailing-space.patch

This patch was dropped because it was merged into the mm-nonmm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm

------------------------------------------------------
From: Breno Leitao <[email protected]>
Subject: scripts/decode_stacktrace.sh: remove trailing space
Date: Mon, 14 Oct 2024 03:02:10 -0700

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.

---

 scripts/decode_stacktrace.sh |    7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
scripts/decode_stacktrace.sh renamed from scripts/decode_stacktrace.sh~scripts-decode_stacktracesh-remove-trailing-space +6 -1
@@ -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

_

Patches currently in -mm which might be from [email protected] are