diff options
Diffstat (limited to 'src/usr/diag/prdf/common/framework/service/prdfRasServices_common.C')
-rw-r--r-- | src/usr/diag/prdf/common/framework/service/prdfRasServices_common.C | 78 |
1 files changed, 0 insertions, 78 deletions
diff --git a/src/usr/diag/prdf/common/framework/service/prdfRasServices_common.C b/src/usr/diag/prdf/common/framework/service/prdfRasServices_common.C index 74dc80713..2bcbb4c1b 100644 --- a/src/usr/diag/prdf/common/framework/service/prdfRasServices_common.C +++ b/src/usr/diag/prdf/common/framework/service/prdfRasServices_common.C @@ -1029,84 +1029,6 @@ void ErrDataService::initPfaData( ServiceDataCollector & i_sdc, //------------------------------------------------------------------------------ -void ErrDataService::MnfgTrace( ErrorSignature * i_esig, - const PfaData & i_pfaData ) -{ -#ifndef __HOSTBOOT_MODULE - // TODO: RTC 79440 Need to add Hostboot support for this function. - - do - { - if ( !PlatServices::mfgMode() ) break; // Nothing to do - - char * MnfgFilename = NULL; - uint32_t l_size = 0; - const char * MnfgKey[] = {"fstp/P0_Root"}; - - errlHndl_t errl = UtilReg::path( MnfgKey, 1, "prdfMfgErrors", - MnfgFilename, l_size ); - if ( NULL != errl ) - { - PRDF_ERR( "[ErrDataService::MnfgTrace] UtilReg::path() failed" ); - PRDF_COMMIT_ERRL( errl, ERRL_ACTION_REPORT ); - break; - } - - UtilFile l_mfgFile; - l_mfgFile.Open(MnfgFilename,"a+"); - - char l_string[100]; - uint32_t signature = i_esig->getSigId(); - HUID sigChip = i_esig->getChipId(); - - // Get Entity Path String - TargetHandle_t l_ptempHandle = PlatServices::getTarget(sigChip); - TARGETING::EntityPath path; - PlatServices::getEntityPath(l_ptempHandle, path, - EntityPath::PATH_PHYSICAL); - char *epStr = path.toString(); - if (epStr) - { - snprintf(l_string, 100, "%s, ", path.toString()); - free(epStr); - } - - l_mfgFile.write(l_string, strlen(l_string)); - - // Write Signature - snprintf(l_string, 100, "0x%08x, 0x%08x, ", sigChip, signature); - l_mfgFile.write(l_string, strlen(l_string)); - - // Write chip ECID data - PlatServices::getECIDString(l_ptempHandle, l_string); - l_mfgFile.write(l_string, strlen(l_string)); - - // Write MRU list - uint32_t n = 0; - while ( (n < MruListLIMIT ) && (n < i_pfaData.mruListCount) ) - { - snprintf( l_string, 100, " , %08x", i_pfaData.mruList[n].callout ); - l_mfgFile.write( l_string, strlen(l_string) ); - ++n; - } - snprintf(l_string, 100, "\n"); - l_mfgFile.write(l_string, 1); - - l_mfgFile.Close(); - - if (MnfgFilename != NULL) - { //need to free the pathname - free(MnfgFilename); - MnfgFilename = NULL; - } - - } while (0); - -#endif // if not __HOSTBOOT_MODULE -} - -//------------------------------------------------------------------------------ - void ErrDataService::AddCapData( CaptureData & i_cd, errlHndl_t i_errHdl) { // As CaptureDataClass has large array inside, allocate it on heap |