Ack. Thanks, Vu
On 9/4/19 9:42 AM, thien.m.huynh wrote:
--- src/imm/tools/imm_dumper.cc | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/imm/tools/imm_dumper.cc b/src/imm/tools/imm_dumper.cc index 68071f1..908bb94 100644 --- a/src/imm/tools/imm_dumper.cc +++ b/src/imm/tools/imm_dumper.cc @@ -403,8 +403,14 @@ static std::map<std::string, std::string> cacheRDNs( std::list<std::string>::iterator it = classNamesList.begin();while (it != classNamesList.end()) {- saImmOmClassDescriptionGet_2(immHandle, (char*)it->c_str(), &classCategory, - &attrs); + SaAisErrorT errorCode = saImmOmClassDescriptionGet_2( + immHandle, (char*)it->c_str(), &classCategory, &attrs); + + if (errorCode != SA_AIS_OK) { + std::cerr << "Failed to get the description of " << *it + << " class: " << errorCode << " - exiting!" << std::endl; + exit(EXIT_FAILURE); + }for (SaImmAttrDefinitionT_2** p = attrs; *p != NULL; p++) {if ((*p)->attrFlags & SA_IMM_ATTR_RDN) {
_______________________________________________ Opensaf-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/opensaf-devel
