diff options
Diffstat (limited to 'src/usr/errl/errlffdc.C')
| -rw-r--r-- | src/usr/errl/errlffdc.C | 32 |
1 files changed, 4 insertions, 28 deletions
diff --git a/src/usr/errl/errlffdc.C b/src/usr/errl/errlffdc.C index 6fc4388fa..7e0204d12 100644 --- a/src/usr/errl/errlffdc.C +++ b/src/usr/errl/errlffdc.C @@ -12,7 +12,7 @@ #include <string.h> #include <trace/interface.H> #include "errlffdc.H" -#include "errlsctn.H" + namespace ERRORLOG { @@ -26,10 +26,10 @@ ErrlFFDC::ErrlFFDC(const compId_t i_compId, const uint32_t i_ffdcLen, const uint8_t i_ffdcVer, const uint8_t i_ffdcSubSect) -: ErrlSctn(i_compId, i_ffdcVer, i_ffdcSubSect), - iv_data( NULL ), - iv_size( 0 ) +: ErrlSctn(i_compId, i_ffdcVer, i_ffdcSubSect) { + + // addData is inherited from parent class ErrlSctn addData(i_ffdcPtr, i_ffdcLen); } @@ -37,32 +37,8 @@ ErrlFFDC::ErrlFFDC(const compId_t i_compId, /////////////////////////////////////////////////////////////////////////////// ErrlFFDC::~ErrlFFDC() { - // Free FFDC data memory - delete iv_data; } -/////////////////////////////////////////////////////////////////////////////// -/////////////////////////////////////////////////////////////////////////////// -void ErrlFFDC::addData(const void *i_data, - const uint32_t i_size) -{ - // Resize memory block - iv_data = (uint8_t*)realloc(iv_data, iv_size + i_size); - - // Make sure reallocate call successes - if (iv_data != NULL) - { - // Copy data to new area - memcpy(iv_data + iv_size, i_data, i_size); - - // Total extra data - iv_size += i_size; - } - else - { - TRACFCOMP(g_trac_errl, "ErrlFFDC::addData() - Reallocate memory failed!"); - } -} } // End namespace |

