[PATCH v3 4/5] print: use new #[export] macro for rust_fmt_argument
Andy Shevchenko
andriy.shevchenko at linux.intel.com
Mon Mar 3 09:46:05 UTC 2025
On Mon, Mar 03, 2025 at 08:45:15AM +0000, Alice Ryhl wrote:
> This moves the rust_fmt_argument function over to use the new #[export]
> macro, which will verify at compile-time that the function signature
> matches what is in the header file.
...
> extern bool no_hash_pointers;
> int no_hash_pointers_enable(char *str);
>
> +/* Used for Rust formatting ('%pA'). */
In case you need a new version, please drop a period at the end as this is the
style used in the sprintf.h already.
> +char *rust_fmt_argument(char *buf, char *end, const void *ptr);
--
With Best Regards,
Andy Shevchenko
More information about the dri-devel
mailing list