From: Borislav Petkov <bp@suse.de>
To: unknown <weidonghui@allwinnertech.com>
Cc: akpm@linux-foundation.org, maz@misterjones.org, will@kernel.org,
rabin@rab.in, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v3] scripts/decodecode: fix faulting instruction no print when opps.file is DOS format
Date: Thu, 30 Sep 2021 14:19:54 +0200 [thread overview]
Message-ID: <YVWrahfHnM95cHy+@zn.tnic> (raw)
In-Reply-To: <20210930020439.3605-1-weidonghui@allwinnertech.com>
On Thu, Sep 30, 2021 at 10:04:39AM +0800, unknown wrote:
> Signed-off-by: Borislav Petkov <bp@suse.de>
> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
You don't just add Signed-off-by of other people when sending a patch -
please don't *ever* do that.
If you don't know what you're doing, *don't* do it but *read* the damn
docs first:
https://www.kernel.org/doc/html/latest/process/submitting-patches.html
> Cc: Marc Zyngier <maz@misterjones.org>
> Cc: Will Deacon <will@kernel.org>
> Cc: Rabin Vincent <rabin@rab.in>
> Cc: lkml <linux-kernel@vger.kernel.org>
> Signed-off-by: weidonghui <weidonghui@allwinnertech.com>
> ---
> scripts/decodecode | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/scripts/decodecode b/scripts/decodecode
> index 31d884e35f2f..77a3b518aacc 100755
> --- a/scripts/decodecode
> +++ b/scripts/decodecode
> @@ -126,7 +126,7 @@ if [ $marker -ne 0 ]; then
> fi
> echo Code starting with the faulting instruction > $T.aa
> echo =========================================== >> $T.aa
> -code=`echo $code | sed -e 's/ [<(]/ /;s/[>)] / /;s/ /,0x/g; s/[>)]$//'`
> +code=`echo $code | sed -e 's/\x0d//;s/ [<(]/ /;s/[>)] / /;s/ /,0x/g; s/[>)]$//'`
So that link I pointed you to says:
"That character is matched with \r by sed. Use:
sed -e "s/\r//g" input-file"
I have no clue how you did not see it?!
But I guess \x0d works too.
To quote from the sed info manual:
"5.8 Escape Sequences - specifying special characters
====================================================
...
'\r'
Produces or matches a carriage return (ASCII 13).
...
'\xXX'
Produces or matches a character whose hexadecimal ASCII value is
XX."
In any case, I'd prefer \r because it is more readable.
Thx.
--
Regards/Gruss,
Boris.
SUSE Software Solutions Germany GmbH, GF: Felix Imendörffer, HRB 36809, AG Nürnberg
prev parent reply other threads:[~2021-09-30 12:20 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-09-30 2:04 [PATCH v3] scripts/decodecode: fix faulting instruction no print when opps.file is DOS format unknown
2021-09-30 12:19 ` Borislav Petkov [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=YVWrahfHnM95cHy+@zn.tnic \
--to=bp@suse.de \
--cc=akpm@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=maz@misterjones.org \
--cc=rabin@rab.in \
--cc=weidonghui@allwinnertech.com \
--cc=will@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox