fix log printf output