Fix wrong format strings for logging.