From 724f17de05138399138bdb507174b0bcd977b70e Mon Sep 17 00:00:00 2001 From: Brian Horton Date: Mon, 21 Oct 2013 16:13:39 -0500 Subject: restore errludstring parse functionality for merged strings Change-Id: I26db60b81da8183cfbb253fe4d08bc62a2c8aee6 RTC: 88825 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/6947 Tested-by: Jenkins Server Reviewed-by: Donald E. Dahle Reviewed-by: MIKE J. JONES Reviewed-by: A. Patrick Williams III --- src/usr/errl/plugins/errludstring.H | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'src/usr/errl/plugins') diff --git a/src/usr/errl/plugins/errludstring.H b/src/usr/errl/plugins/errludstring.H index f12281c16..640daab8b 100644 --- a/src/usr/errl/plugins/errludstring.H +++ b/src/usr/errl/plugins/errludstring.H @@ -67,7 +67,16 @@ public: void * i_pBuffer, const uint32_t i_buflen) const { - i_parser.PrintString("String data", static_cast(i_pBuffer)); + const char *outputString = static_cast(i_pBuffer); + for (uint32_t i = 0; i < i_buflen;) + { + if (strlen(outputString)) // skip NULLs + { + i_parser.PrintString("String data", outputString); + } + i += strlen(outputString) + 1; + outputString += strlen(outputString) + 1; + } } private: -- cgit v1.2.3