summaryrefslogtreecommitdiffstats
path: root/src/usr/hwpf/hwp/sbe_centaur_init
diff options
context:
space:
mode:
authorBrian Horton <brianh@linux.ibm.com>2013-01-17 10:42:48 -0600
committerA. Patrick Williams III <iawillia@us.ibm.com>2013-02-04 13:10:03 -0600
commit68286500750647b14ec5cbbe0253bafef2fdf341 (patch)
tree6daad1d9a2fdb00c73b0714e261f2b361b3cb409 /src/usr/hwpf/hwp/sbe_centaur_init
parent51600b1e0118cd11953c79443f8fdf6156cff455 (diff)
downloadtalos-hostboot-68286500750647b14ec5cbbe0253bafef2fdf341.tar.gz
talos-hostboot-68286500750647b14ec5cbbe0253bafef2fdf341.zip
change path.dump() calls to trace HUID
also, some other general cleanup - replace loop counters with iterators - made more code consistant - fixed bug where errl wasn't getting committed Change-Id: I7acdda17b1b116675ce84de8c22f87395e0fee91 RTC: 59413 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/2949 Tested-by: Jenkins Server Reviewed-by: MIKE J. JONES <mjjones@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/usr/hwpf/hwp/sbe_centaur_init')
-rw-r--r--src/usr/hwpf/hwp/sbe_centaur_init/sbe_centaur_init.C21
1 files changed, 13 insertions, 8 deletions
diff --git a/src/usr/hwpf/hwp/sbe_centaur_init/sbe_centaur_init.C b/src/usr/hwpf/hwp/sbe_centaur_init/sbe_centaur_init.C
index bb7c01138..9b93441e9 100644
--- a/src/usr/hwpf/hwp/sbe_centaur_init/sbe_centaur_init.C
+++ b/src/usr/hwpf/hwp/sbe_centaur_init/sbe_centaur_init.C
@@ -52,6 +52,7 @@
#include <vfs/vfs.H>
#include "sbe_centaur_init.H"
#include <hwpisteperror.H>
+#include <errl/errludtarget.H>
extern fapi::ReturnCode fapiPoreVe(const fapi::Target i_target,
std::list<uint64_t> & io_sharedObjectArgs);
@@ -66,6 +67,7 @@ namespace SBE_CENTAUR_INIT
using namespace ISTEP;
using namespace ISTEP_ERROR;
+using namespace ERRORLOG;
using namespace TARGETING;
using namespace fapi;
using namespace vsbe;
@@ -157,21 +159,20 @@ void* call_sbe_centaur_init( void *io_pArgs )
myArgs.push_back(reinterpret_cast<uint64_t>(l_stateArg));
// Loop thru all Centaurs in list
- for ( size_t i = 0; i < l_membufTargetList.size(); i++ )
+ for (TargetHandleList::const_iterator
+ l_membuf_iter = l_membufTargetList.begin();
+ l_membuf_iter != l_membufTargetList.end();
+ ++l_membuf_iter)
{
// Create a FAPI Target
- const TARGETING::Target* l_membuf_target = l_membufTargetList[i];
+ const TARGETING::Target* l_membuf_target = *l_membuf_iter;
const fapi::Target l_fapiTarget( fapi::TARGET_TYPE_MEMBUF_CHIP,
- reinterpret_cast<void *>
(const_cast<TARGETING::Target*>(l_membuf_target)));
// Put out info on target
TRACFCOMP( ISTEPS_TRACE::g_trac_isteps_trace,
- "Running call_sbe_centaur_init on Centaur entity path...");
-
- EntityPath l_path;
- l_path = l_membuf_target->getAttr<ATTR_PHYS_PATH>();
- l_path.dump();
+ "Running call_sbe_centaur_init on Centaur "
+ "target HUID %.8X", TARGETING::get_huid(l_membuf_target));
// Run the engine
TRACFCOMP(ISTEPS_TRACE::g_trac_isteps_trace,
@@ -185,6 +186,10 @@ void* call_sbe_centaur_init( void *io_pArgs )
"ERROR 0x%.8X call_sbe_centaur_init - Error returned from"
" VSBE engine on this Centaur, l_rc 0x%llX",
l_errl->reasonCode());
+
+ // capture the target data in the elog
+ ErrlUserDetailsTarget(l_membuf_target).addToLog( l_errl );
+
/*@
* @errortype
* @reasoncode ISTEP_SBE_CENTAUR_INIT_FAILED
OpenPOWER on IntegriCloud