Pass the right number of arguments to sprintf