fixed printf format arguments to fix Wformat errors