scripts-decodecode-make-it-take-multiline-code-line.patch removed from -mm tree
The patch titled
Subject: scripts/decodecode: make it take multiline Code line
has been removed from the -mm tree. Its filename was
scripts-decodecode-make-it-take-multiline-code-line.patch
This patch was dropped because it was merged into mainline or a subsystem tree
------------------------------------------------------
From: Andy Shevchenko <[email protected]>
Subject: scripts/decodecode: make it take multiline Code line
In case of running scripts/decodecode without any parameters in order to give a copy'n'pasted Code line from, for example, email it would parse only first line of it, while in emails it's split to few.
ie, when you have a file out of oops the Code line looks like
Code: hh hh ... <hh> ... hh\n
When copy'n'paste from, for example, email where sender or some middle MTA split it, the line looks like:
Code: hh hh ... hh\n
hh ... <hh> ... hh\n
hh hh ... hh\n
The Code line followed by another oops line usually contains characters out of hex digit + space + < + > set.
So add logic to join this split back if and only if the following lines have hex digits, or spaces, or '<', or '>' characters. It will be quite unlikely to have a broken input in well formed Oops or dmesg, thus a simple regex is being used.
---
scripts/decodecode | 12 ++++++++++++ 1 file changed, 12 insertions(+)
scripts/decodecode renamed from scripts/decodecode~scripts-decodecode-make-it-take-multiline-code-line +12 -0
@@ -21,12 +21,24 @@ trap cleanup EXIT T=`mktemp` || die "cannot create temp file" code= +cont= while read i ; do case "$i" in *Code:*) code=$i + cont=yes + ;; +*) + [ -n "$cont" ] && { + xdump="$(echo $i | grep '^[[:xdigit:]<>[:space:]]\+$')" + if [ -n "$xdump" ]; then + code="$code $xdump" + else + cont= + fi + } ;; esac
_
Patches currently in -mm which might be from [email protected] are
bitmap-add-bitmap_zero-bitmap_clear-test-cases.patch bitmap-add-bitmap_fill-bitmap_set-test-cases.patch bitmap-clean-up-test_zero_fill_copy-test-case-and-rename.patch bitmap-make-bitmap_fill-and-bitmap_zero-consistent.patch