custom_printf: fix invalid printf formats