Fix Print to Printf when necessary to make logs properly formatted