Fix use of printf like functions