Re: [PATCH v3 04/11] lib/vsprintf: add %*pE[achnops] format specifier

2014-08-25 Thread Andy Shevchenko
On Wed, 2014-08-20 at 07:46 -0700, Joe Perches wrote: > On Wed, 2014-08-20 at 12:42 +0300, Andy Shevchenko wrote: > > This allows user to print a given buffer as an escaped string. The rules are > > applied according to an optional mix of flags provided by additional format > > letters. > >

Re: [PATCH v3 04/11] lib/vsprintf: add %*pE[achnops] format specifier

2014-08-25 Thread Andy Shevchenko
On Wed, 2014-08-20 at 07:46 -0700, Joe Perches wrote: On Wed, 2014-08-20 at 12:42 +0300, Andy Shevchenko wrote: This allows user to print a given buffer as an escaped string. The rules are applied according to an optional mix of flags provided by additional format letters. Thanks Andy.

Re: [PATCH v3 04/11] lib/vsprintf: add %*pE[achnops] format specifier

2014-08-20 Thread Joe Perches
On Wed, 2014-08-20 at 12:42 +0300, Andy Shevchenko wrote: > This allows user to print a given buffer as an escaped string. The rules are > applied according to an optional mix of flags provided by additional format > letters. Thanks Andy. Looks good to me. Very trivial note: > diff --git

[PATCH v3 04/11] lib/vsprintf: add %*pE[achnops] format specifier

2014-08-20 Thread Andy Shevchenko
This allows user to print a given buffer as an escaped string. The rules are applied according to an optional mix of flags provided by additional format letters. For example, if the given buffer is: 1b 62 20 5c 43 07 22 90 0d 5d The result strings would be: %*pE"\eb

[PATCH v3 04/11] lib/vsprintf: add %*pE[achnops] format specifier

2014-08-20 Thread Andy Shevchenko
This allows user to print a given buffer as an escaped string. The rules are applied according to an optional mix of flags provided by additional format letters. For example, if the given buffer is: 1b 62 20 5c 43 07 22 90 0d 5d The result strings would be: %*pE\eb

Re: [PATCH v3 04/11] lib/vsprintf: add %*pE[achnops] format specifier

2014-08-20 Thread Joe Perches
On Wed, 2014-08-20 at 12:42 +0300, Andy Shevchenko wrote: This allows user to print a given buffer as an escaped string. The rules are applied according to an optional mix of flags provided by additional format letters. Thanks Andy. Looks good to me. Very trivial note: diff --git