[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20190906102026.GO2680@smile.fi.intel.com>
Date: Fri, 6 Sep 2019 13:20:26 +0300
From: Andy Shevchenko <andriy.shevchenko@...ux.intel.com>
To: "J. Bruce Fields" <bfields@...hat.com>
Cc: linux-kernel@...r.kernel.org, Kees Cook <keescook@...omium.org>
Subject: Re: [PATCH 9/9] Remove string_escape_mem_ascii
On Thu, Sep 05, 2019 at 03:44:33PM -0400, J. Bruce Fields wrote:
> From: "J. Bruce Fields" <bfields@...hat.com>
>
> It's easier to do this in string_escape_mem now.
>
> Might also consider non-ascii and quote-mark sprintf modifiers and then
> we might make do with seq_printk.
No SoB :-)
Entire series forgot to include RFC prefix.
Nevertheless, this one I like independently on what we decide about flags.
> - ret = string_escape_mem_ascii(src, isz, buf, size);
> + ret = string_escape_mem(src, isz, buf, size, ESCAPE_NP|ESCAPE_NONASCII|
> + ESCAPE_STYLE_SLASH|ESCAPE_STYLE_HEX, "\"\\");
Perhaps,
unsigned int flags = FLAG1 | FLAG2 ...;
--
With Best Regards,
Andy Shevchenko
Powered by blists - more mailing lists