Browse Source

!756 Bugfix: fix atc internal error msg code

From: @hugo1
Reviewed-by: @xchu42,@wqtshg
Signed-off-by: @wqtshg
tags/v1.2.0
mindspore-ci-bot Gitee 3 years ago
parent
commit
a2666862f6
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      inc/framework/common/debug/log.h

+ 2
- 2
inc/framework/common/debug/log.h View File

@@ -258,7 +258,7 @@
#define GE_ERRORLOG_AND_ERRORMSG(_status, errormsg) \ #define GE_ERRORLOG_AND_ERRORMSG(_status, errormsg) \
{ \ { \
GELOGE(_status, "%s", errormsg); \ GELOGE(_status, "%s", errormsg); \
ErrorManager::GetInstance().ATCReportErrMessage("E10043", {"reason"}, {errormsg}); \
ErrorManager::GetInstance().ATCReportErrMessage("E19021", {"reason"}, {errormsg}); \
} }


#define GE_CHK_LOG_AND_ERRORMSG(expr, _status, errormsg) \ #define GE_CHK_LOG_AND_ERRORMSG(expr, _status, errormsg) \
@@ -266,7 +266,7 @@
bool b = (expr); \ bool b = (expr); \
if (!b) { \ if (!b) { \
GELOGE(_status, "%s", errormsg); \ GELOGE(_status, "%s", errormsg); \
ErrorManager::GetInstance().ATCReportErrMessage("E10043", {"reason"}, {errormsg}); \
ErrorManager::GetInstance().ATCReportErrMessage("E19021", {"reason"}, {errormsg}); \
return _status; \ return _status; \
} \ } \
} while (0) } while (0)


Loading…
Cancel
Save