Messages in this thread | | | Date | Mon, 14 Feb 2022 12:18:26 +0200 | From | Andy Shevchenko <> | Subject | Re: [PATCH v4 12/20] vsprintf: add new `%pA` format specifier |
| |
On Sat, Feb 12, 2022 at 02:03:38PM +0100, Miguel Ojeda wrote:
> From: Gary Guo <gary@garyguo.net>
Not sure I understand this...
> This patch adds a format specifier `%pA` to `vsprintf` which formats > a pointer as `core::fmt::Arguments`. Doing so allows us to directly > format to the internal buffer of `printf`, so we do not have to use > a temporary buffer on the stack to pre-assemble the message on > the Rust side. > > This specifier is intended only to be used from Rust and not for C, so > `checkpatch.pl` is intentionally unchanged to catch any misuse. > > Co-developed-by: Alex Gaynor <alex.gaynor@gmail.com> > Signed-off-by: Alex Gaynor <alex.gaynor@gmail.com> > Co-developed-by: Wedson Almeida Filho <wedsonaf@google.com> > Signed-off-by: Wedson Almeida Filho <wedsonaf@google.com>
> Signed-off-by: Gary Guo <gary@garyguo.net>
...together with this in the current SoB chain.
> Co-developed-by: Miguel Ojeda <ojeda@kernel.org> > Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
I'm wondering if you considered to use %pV.
-- With Best Regards, Andy Shevchenko
| |