Re: [PATCH 3/6] lib80211: re-use string_escape_mem_any_np()

2014-07-03 Thread Andy Shevchenko
On Wed, 2014-07-02 at 09:30 -0700, Joe Perches wrote: > On Wed, 2014-07-02 at 17:06 +0300, Andy Shevchenko wrote: > > On Wed, 2014-07-02 at 06:43 -0700, Joe Perches wrote: > > > On Wed, 2014-07-02 at 16:20 +0300, Andy Shevchenko wrote: > > > > In kernel we have function to escape a given string. Le

Re: [PATCH 3/6] lib80211: re-use string_escape_mem_any_np()

2014-07-02 Thread Joe Perches
On Wed, 2014-07-02 at 17:06 +0300, Andy Shevchenko wrote: > On Wed, 2014-07-02 at 06:43 -0700, Joe Perches wrote: > > On Wed, 2014-07-02 at 16:20 +0300, Andy Shevchenko wrote: > > > In kernel we have function to escape a given string. Let's use it instead > > > of > > > custom approach. > > > > >

Re: [PATCH 3/6] lib80211: re-use string_escape_mem_any_np()

2014-07-02 Thread Joe Perches
On Wed, 2014-07-02 at 16:20 +0300, Andy Shevchenko wrote: > In kernel we have function to escape a given string. Let's use it instead of > custom approach. > > This fixes a bug. The current implementation wrongly prints octal numbers: > only > two first digits are used in case when 3 are required

Re: [PATCH 3/6] lib80211: re-use string_escape_mem_any_np()

2014-07-02 Thread Andy Shevchenko
On Wed, 2014-07-02 at 06:43 -0700, Joe Perches wrote: > On Wed, 2014-07-02 at 16:20 +0300, Andy Shevchenko wrote: > > In kernel we have function to escape a given string. Let's use it instead of > > custom approach. > > > > This fixes a bug. The current implementation wrongly prints octal numbers: