From 37b59bfd7006d44c1b2d4c5ea65d4b613f525c1c Mon Sep 17 00:00:00 2001 From: zhangxiaokun Date: Sun, 24 Jan 2021 12:36:51 +0800 Subject: [PATCH] Fix GELOG format --- parser/common/acl_graph_parser_util.cc | 2 +- parser/common/acl_graph_parser_util.h | 2 +- parser/common/parser_utils.cc | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/parser/common/acl_graph_parser_util.cc b/parser/common/acl_graph_parser_util.cc index a9fe017..e52b792 100644 --- a/parser/common/acl_graph_parser_util.cc +++ b/parser/common/acl_graph_parser_util.cc @@ -295,7 +295,7 @@ domi::Status AclGrphParseUtil::ParseAclOutputNodes(const string &out_nodes) { auto iter = ge::GetParserContext().out_nodes_map.find(key_value_v[0]); int32_t index = stoi(StringUtils::Trim(key_value_v[1])); - GELOGD("Get output info: node[%s] and index[%ld]", key_value_v[0].c_str(), index); + GELOGD("Get output info: node[%s] and index[%d]", key_value_v[0].c_str(), index); if (iter != ge::GetParserContext().out_nodes_map.end()) { iter->second.emplace_back(index); } else { diff --git a/parser/common/acl_graph_parser_util.h b/parser/common/acl_graph_parser_util.h index 0e68594..4d11a35 100644 --- a/parser/common/acl_graph_parser_util.h +++ b/parser/common/acl_graph_parser_util.h @@ -223,7 +223,7 @@ inline domi::Status CheckInt64Uint32MulOverflow(int64_t a, uint32_t b) { #define PARSER_INT64_UINT32_MULCHECK(a, b) \ if (ge::parser::CheckInt64Uint32MulOverflow((a), (b)) != SUCCESS) { \ - GELOGW("Int64 %ld and UINT32 %u multiplication can result in overflow!", static_cast(a), \ + GELOGW("Int64 %ld and Uint32 %u multiplication can result in overflow!", static_cast(a), \ static_cast(b)); \ return INTERNAL_ERROR; \ } diff --git a/parser/common/parser_utils.cc b/parser/common/parser_utils.cc index 7dfad90..5de81a3 100644 --- a/parser/common/parser_utils.cc +++ b/parser/common/parser_utils.cc @@ -201,7 +201,7 @@ Status ParserUtils::HandleOutputContext(const NodePtr &node, NodePtr out_node = out_node_index[index].first; int32_t out_index = out_node_index[index].second; - GELOGD("Begin to handle output node:%s[%zu] with index:%zu", out_node->GetName().c_str(), out_index, index); + GELOGD("Begin to handle output node:%s[%d] with index:%zu", out_node->GetName().c_str(), out_index, index); auto src_out_anchor = out_node->GetOutDataAnchor(out_index); // get out node's out anchor. GE_CHECK_NOTNULL(src_out_anchor); for (const auto &dest_in_anchor : node_out_anchor->GetPeerInDataAnchors()) {