Fix sampgdk_do_vlogprintf() issue

Print to a temporary buffer instead of passing arguments directly to
logprintf().