osaf/services/saf/immsv/immnd/ImmModel.cc | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
Corrected Error log information when RDN attribute is greater than 64 and also
print the attribute value
diff --git a/osaf/services/saf/immsv/immnd/ImmModel.cc
b/osaf/services/saf/immsv/immnd/ImmModel.cc
--- a/osaf/services/saf/immsv/immnd/ImmModel.cc
+++ b/osaf/services/saf/immsv/immnd/ImmModel.cc
@@ -5726,8 +5726,8 @@ SaAisErrorT ImmModel::ccbObjectCreate(Im
if(((size_t)attrValues->n.attrValue.val.x.size > 65) &&
(i4->second->mValueType == SA_IMM_ATTR_SASTRINGT))
{
- LOG_NO("ERR_INVALID_PARAM: RDN attribute is too large: %u. Max
length is 64 "
- "for SaStringT", attrValues->n.attrValue.val.x.size);
+ LOG_NO("ERR_INVALID_PARAM: RDN attribute value %s is too
large: %u. Max length is 64 "
+ "for SaStringT", attrValues->n.attrValue.val.x.buf,
(attrValues->n.attrValue.val.x.size -1));
err = SA_AIS_ERR_INVALID_PARAM;
goto ccbObjectCreateExit;
}
@@ -11438,8 +11438,8 @@ ImmModel::rtObjectCreate(struct ImmsvOmC
if(((size_t)attrValues->n.attrValue.val.x.size > 65) &&
(attrValues->n.attrValueType == SA_IMM_ATTR_SASTRINGT))
{
- LOG_NO("ERR_INVALID_PARAM: RDN attribute is too large: %u. Max
length is 64 "
- "for SaStringT", attrValues->n.attrValue.val.x.size);
+ LOG_NO("ERR_INVALID_PARAM: RDN attribute value %s is too
large: %u. Max length is 64 "
+ "for SaStringT", attrValues->n.attrValue.val.x.buf,
(attrValues->n.attrValue.val.x.size-1));
err = SA_AIS_ERR_INVALID_PARAM;
goto rtObjectCreateExit;
}
------------------------------------------------------------------------------
November Webinars for C, C++, Fortran Developers
Accelerate application performance with scalable programming models. Explore
techniques for threading, error checking, porting, and tuning. Get the most
from the latest Intel processors and coprocessors. See abstracts and register
http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk
_______________________________________________
Opensaf-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensaf-devel