News for hackers. Stuff that matters.
Re:Tearing apart printf() (2018) by lelf on Tuesday November 12, 2019 @07:23PM (#21519797)
4. On GNU/Linux you can add your own %-conversions (e. g. %Y) with register_printf_function.
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.
Re:Tearing apart printf() (2018) by eqvinox on Wednesday November 13, 2019 @06:56AM (#21523103)
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.