Fix format string generation in pkg_printf.

As buf is passed as char * it is useless to apply sizeof operator
to it.