Re:Tearing apart printf() (2018)
by saagarjha on Tuesday November 12, 2019 @07:40PM
(#21519944)
register_printf_function is deprecated; you should use register_printf_specifier instead.
[ Parent
| on HN ]
I strongly advise against using either since both are not only non-portable, but also break any compiler support for getting you warnings when you're using it wrong.
The Linux kernel style suffix extensions (cf. https://www.kernel.org/doc/Documentation/printk-formats.txt) are much better on the latter front.