Fixed logfile printf