Re: [PATCH v1] scripts/decodecode: Make it take multiline Code line

2017-12-19 Thread Andrew Morton
On Tue, 19 Dec 2017 17:05:19 +0200 Andy Shevchenko wrote: > > That's rather hard to understand. An example would help? > > When you have a file out of oops the Code line looks like > > Code: hh hh ... ... hh\n > > When copy'n'paste from, for example,

Re: [PATCH v1] scripts/decodecode: Make it take multiline Code line

2017-12-19 Thread Andrew Morton
On Tue, 19 Dec 2017 17:05:19 +0200 Andy Shevchenko wrote: > > That's rather hard to understand. An example would help? > > When you have a file out of oops the Code line looks like > > Code: hh hh ... ... hh\n > > When copy'n'paste from, for example, email where sender or some middle > MTA

Re: [PATCH v1] scripts/decodecode: Make it take multiline Code line

2017-12-19 Thread Andy Shevchenko
On Tue, 2017-12-12 at 12:51 -0800, Andrew Morton wrote: > On Tue, 12 Dec 2017 12:03:23 +0200 Andy Shevchenko linux.intel.com> wrote: > > > In case of running scripts/decodecode without any parameters in > > order to give a > > copy'n'pasted Code line from, for example, email

Re: [PATCH v1] scripts/decodecode: Make it take multiline Code line

2017-12-19 Thread Andy Shevchenko
On Tue, 2017-12-12 at 12:51 -0800, Andrew Morton wrote: > On Tue, 12 Dec 2017 12:03:23 +0200 Andy Shevchenko linux.intel.com> wrote: > > > 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

Re: [PATCH v1] scripts/decodecode: Make it take multiline Code line

2017-12-12 Thread Andrew Morton
On Tue, 12 Dec 2017 12:03:23 +0200 Andy Shevchenko wrote: > 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

Re: [PATCH v1] scripts/decodecode: Make it take multiline Code line

2017-12-12 Thread Andrew Morton
On Tue, 12 Dec 2017 12:03:23 +0200 Andy Shevchenko wrote: > 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. > > So, add a logic to

[PATCH v1] scripts/decodecode: Make it take multiline Code line

2017-12-12 Thread Andy Shevchenko
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. So, add a logic to join this split back if and only if the following lines have hex digits, or

[PATCH v1] scripts/decodecode: Make it take multiline Code line

2017-12-12 Thread Andy Shevchenko
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. So, add a logic to join this split back if and only if the following lines have hex digits, or