linux/Documentation
Gary Guo 787983da77 vsprintf: add new %pA format specifier
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.

Reviewed-by: Kees Cook <keescook@chromium.org>
Acked-by: Petr Mladek <pmladek@suse.com>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
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>
Co-developed-by: Miguel Ojeda <ojeda@kernel.org>
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
2022-09-28 09:00:20 +02:00
..
2022-08-04 12:12:54 -07:00
2022-09-02 09:31:15 -06:00
2022-08-10 11:07:26 -07:00
2022-08-04 15:35:58 -07:00
2022-08-08 11:18:31 -07:00
2022-08-06 10:19:51 -07:00
2022-08-04 19:47:37 -07:00
2022-07-11 15:51:01 +01:00
2022-08-10 11:43:59 -04:00
2022-08-05 09:41:12 -07:00
2022-08-04 19:47:37 -07:00
2022-08-06 10:56:45 -07:00