Remove a redundant usage of sprint_f and correct the argument order for another.