Hi Vu, Ack from me.
Thanks, Zoran -----Original Message----- From: Vu Minh Nguyen [mailto:vu.m.ngu...@dektech.com.au] Sent: den 24 januari 2018 15:47 To: Zoran Milinkovic <zoran.milinko...@ericsson.com>; ravisekhar.ko...@oracle.com Cc: opensaf-devel@lists.sourceforge.net; Vu Minh Nguyen <vu.m.ngu...@dektech.com.au> Subject: [PATCH 1/1] imm: improve immlist printout for multiple attribute values [#2753] Have one space separated among attribute values. --- src/imm/tools/imm_list.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/imm/tools/imm_list.c b/src/imm/tools/imm_list.c index 83c0653..7ccd710 100644 --- a/src/imm/tools/imm_list.c +++ b/src/imm/tools/imm_list.c @@ -141,19 +141,19 @@ static void print_attr_value(SaImmValueTypeT attrValueType, { switch (attrValueType) { case SA_IMM_ATTR_SAINT32T: - printf("%d (0x%x)", *((SaInt32T *)attrValue), + printf("%d (0x%x) ", *((SaInt32T *)attrValue), *((SaInt32T *)attrValue)); break; case SA_IMM_ATTR_SAUINT32T: - printf("%u (0x%x)", *((SaUint32T *)attrValue), + printf("%u (0x%x) ", *((SaUint32T *)attrValue), *((SaUint32T *)attrValue)); break; case SA_IMM_ATTR_SAINT64T: - printf("%lld (0x%llx)", *((SaInt64T *)attrValue), + printf("%lld (0x%llx) ", *((SaInt64T *)attrValue), *((SaInt64T *)attrValue)); break; case SA_IMM_ATTR_SAUINT64T: - printf("%llu (0x%llx)", *((SaUint64T *)attrValue), + printf("%llu (0x%llx) ", *((SaUint64T *)attrValue), *((SaUint64T *)attrValue)); break; case SA_IMM_ATTR_SATIMET: { @@ -163,15 +163,15 @@ static void print_attr_value(SaImmValueTypeT attrValueType, ctime_r(&time, buf); buf[strlen(buf) - 1] = '\0'; /* Remove new line */ - printf("%llu (0x%llx, %s)", *((SaTimeT *)attrValue), + printf("%llu (0x%llx, %s) ", *((SaTimeT *)attrValue), *((SaTimeT *)attrValue), buf); break; } case SA_IMM_ATTR_SAFLOATT: - printf("%.8g", *((SaFloatT *)attrValue)); + printf("%.8g ", *((SaFloatT *)attrValue)); break; case SA_IMM_ATTR_SADOUBLET: - printf("%.17g", *((SaDoubleT *)attrValue)); + printf("%.17g ", *((SaDoubleT *)attrValue)); break; case SA_IMM_ATTR_SANAMET: { SaNameT *myNameT = (SaNameT *)attrValue; @@ -194,12 +194,12 @@ static void print_attr_value(SaImmValueTypeT attrValueType, printf("%x", (int)anyp->bufferAddr[i]); } } - printf(" size(%u)", (unsigned int)anyp->bufferSize); + printf(" size(%u) ", (unsigned int)anyp->bufferSize); break; } default: - printf("Unknown"); + printf("Unknown "); break; } } -- 1.9.1 ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Opensaf-devel mailing list Opensaf-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/opensaf-devel