From 51a9cd52e1864d30ae3b9e5f97499c7b3b0cfc76 Mon Sep 17 00:00:00 2001 From: "liyihan2@huawei.com" Date: Tue, 23 Mar 2021 17:33:32 +0800 Subject: [PATCH] Common log optimize --- ge/client/ge_api.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ge/client/ge_api.cc b/ge/client/ge_api.cc index ae7f51ab..7ecfcc9c 100644 --- a/ge/client/ge_api.cc +++ b/ge/client/ge_api.cc @@ -70,8 +70,8 @@ Status CheckOptionsValid(const std::map &options) { if (job_id_iter != options.end()) { if (job_id_iter->second.length() > kMaxStrLen) { GELOGE(PARAM_INVALID,"[Check][JobId]Failed," - "the job_id [%s] string length > max string length: %d", - job_id_iter->second.c_str(), kMaxStrLen); + "the job_id [%s] string length: %zu > max string length: %d", + job_id_iter->second.c_str(), job_id_iter->second.length(), kMaxStrLen); REPORT_INPUT_ERROR("E10051", std::vector({"id","length"}), std::vector({job_id_iter->second, std::to_string(kMaxStrLen)})); return FAILED; }