diff options
| author | Mike Jones <mjjones@us.ibm.com> | 2012-03-12 10:12:01 -0500 |
|---|---|---|
| committer | A. Patrick Williams III <iawillia@us.ibm.com> | 2012-03-16 09:13:39 -0500 |
| commit | 8a1168142bd3f273dbd4edf841c53a3ae394cd5e (patch) | |
| tree | 94029d881fa5b89d186073859c7de2fd6dcdfcb8 /src/usr/errl/errludstring.C | |
| parent | ff8472f5e338d17194b5a1300b9553dd1ac3a241 (diff) | |
| download | talos-hostboot-8a1168142bd3f273dbd4edf841c53a3ae394cd5e.tar.gz talos-hostboot-8a1168142bd3f273dbd4edf841c53a3ae394cd5e.zip | |
ERRL: Ensure all Hostboot code uses ErrlUserDetails framework.
RTC: 36920
Change-Id: I82667c8e63e8a99b9cc7eb1dfbbbdbe1c3b2bb2a
Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/730
Tested-by: Jenkins Server
Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/usr/errl/errludstring.C')
| -rw-r--r-- | src/usr/errl/errludstring.C | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/src/usr/errl/errludstring.C b/src/usr/errl/errludstring.C new file mode 100644 index 000000000..42f185248 --- /dev/null +++ b/src/usr/errl/errludstring.C @@ -0,0 +1,54 @@ +// IBM_PROLOG_BEGIN_TAG +// This is an automatically generated prolog. +// +// $Source: src/usr/errl/errludstring.C $ +// +// IBM CONFIDENTIAL +// +// COPYRIGHT International Business Machines Corp. 2012 +// +// p1 +// +// Object Code Only (OCO) source materials +// Licensed Internal Code Source Materials +// IBM HostBoot Licensed Internal Code +// +// The source code for this program is not published or other- +// wise divested of its trade secrets, irrespective of what has +// been deposited with the U.S. Copyright Office. +// +// Origin: 30 +// +// IBM_PROLOG_END +/** + * @file errludstring.C + * + * @brief Implementation of ErrlUserDetailsString + */ +#include <errl/errludstring.H> +#include <string.h> + +namespace ERRORLOG +{ + +//------------------------------------------------------------------------------ +ErrlUserDetailsString::ErrlUserDetailsString(const char * i_pString) +{ + char * l_pBuf = reinterpret_cast<char *>( + reallocUsrBuf(strlen(i_pString) + 1)); + strcpy(l_pBuf, i_pString); + + // Set up ErrlUserDetails instance variables + iv_CompId = HBERRL_COMP_ID; + iv_Version = 1; + iv_SubSection = HBERRL_UDT_STRING; +} + +//------------------------------------------------------------------------------ +ErrlUserDetailsString::~ErrlUserDetailsString() +{ + +} + +} + |

