Fix va_args usage in pkg_printf.

We modify va_list in process_format_main by calling va_arg function,
hence we need to pass a pointer to va_list to allow subsequent calls
of this function to operate with a proper state of va_list.