Browse Source

add errorno

pull/1363/head
gengchao4@huawei.com 4 years ago
parent
commit
cc31b6cb3a
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      ge/common/auth/file_saver.cc

+ 4
- 4
ge/common/auth/file_saver.cc View File

@@ -105,7 +105,7 @@ Status FileSaver::SaveWithFileHeader(const std::string &file_path, const ModelFi
// Close file
auto ret_close = mmClose(fd);
if (ret_close != EN_OK) {
GELOGE(FAILED, "Close file failed. mmpa_errorno = %ld, %s", ret_close, strerror(errno));
GELOGE(FAILED, "Close file failed. mmpa_errorno = %d, %s", ret_close, strerror(errno));
return FAILED;
}
return ret;
@@ -143,7 +143,7 @@ Status FileSaver::SaveWithFileHeader(const std::string &file_path, const ModelFi
// Close file
auto ret_close = mmClose(fd);
if (ret_close != EN_OK) {
GELOGE(FAILED, "Close file failed. mmpa_errorno = %ld, %s", ret_close, strerror(errno));
GELOGE(FAILED, "Close file failed. mmpa_errorno = %d, %s", ret_close, strerror(errno));
return FAILED;
}
return ret;
@@ -320,7 +320,7 @@ Status FileSaver::SaveWithFileHeader(const std::string &file_path, const ModelFi
// Close file
auto ret_close = mmClose(fd);
if (ret_close != EN_OK) {
GELOGE(FAILED, "Close file failed. mmpa_errorno = %ld, %s", ret_close, strerror(errno));
GELOGE(FAILED, "Close file failed. mmpa_errorno = %d, %s", ret_close, strerror(errno));
return FAILED;
}
return ret;
@@ -345,7 +345,7 @@ FMK_FUNC_HOST_VISIBILITY FMK_FUNC_DEV_VISIBILITY Status FileSaver::SaveToFile(co
// Close file
auto ret_close = mmClose(fd);
if (ret_close != EN_OK) {
GELOGE(FAILED, "Close file failed. mmpa_errorno = %ld, %s", ret_close, strerror(errno));
GELOGE(FAILED, "Close file failed. mmpa_errorno = %d, %s", ret_close, strerror(errno));
return FAILED;
}
return ret;


Loading…
Cancel
Save