correct string formatting in log messages