summaryrefslogtreecommitdiffstats
path: root/src/usr/hwpf/hwp/fapiTestHwpFfdc.C
diff options
context:
space:
mode:
authorMike Jones <mjjones@us.ibm.com>2011-10-06 15:30:27 -0500
committerMIKE J. JONES <mjjones@us.ibm.com>2011-10-11 16:24:46 -0500
commit17f630f5c2fabea998708dc2b2cb33120c388079 (patch)
tree148f26d81d8d33600a25eeda969a8169565978c8 /src/usr/hwpf/hwp/fapiTestHwpFfdc.C
parent8c062af8b6bd50a59823c7ec430ec5fc019052d2 (diff)
downloadtalos-hostboot-17f630f5c2fabea998708dc2b2cb33120c388079.tar.gz
talos-hostboot-17f630f5c2fabea998708dc2b2cb33120c388079.zip
HWPF: Error Information Updates
Change-Id: I9857638a35f21489e32448af3bf95e0155954b29 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/425 Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com> Reviewed-by: CAMVAN T. NGUYEN <ctnguyen@us.ibm.com>
Diffstat (limited to 'src/usr/hwpf/hwp/fapiTestHwpFfdc.C')
-rw-r--r--src/usr/hwpf/hwp/fapiTestHwpFfdc.C16
1 files changed, 9 insertions, 7 deletions
diff --git a/src/usr/hwpf/hwp/fapiTestHwpFfdc.C b/src/usr/hwpf/hwp/fapiTestHwpFfdc.C
index 69d3fb57a..57cc8fd3c 100644
--- a/src/usr/hwpf/hwp/fapiTestHwpFfdc.C
+++ b/src/usr/hwpf/hwp/fapiTestHwpFfdc.C
@@ -31,6 +31,8 @@
* Flag Defect/Feature User Date Description
* ------ -------------- ---------- ----------- ----------------------------
* mjjones 08/08/2011 Created.
+ * mjjones 10/06/2011 Updated due to new ErrorInfo
+ * design.
*
*/
@@ -43,17 +45,17 @@ extern "C"
// hwpTestFfdc1 function
//******************************************************************************
fapi::ReturnCode hwpTestFfdc1(const fapi::Target & i_target,
- fapi::TestFfdc1 & o_ffdc)
+ fapi::ReturnCode & o_rc)
{
- FAPI_INF("Performing FFDC HWP: hwpTestFfdc1");
+ FAPI_INF("hwpTestFfdc1: Start HWP (FFDC HWP)");
- // Just set data to output structure. A real FFDC HWP would do a hardware
- // access to get FFDC
- fapi::ReturnCode l_rc;
+ // Collect a uint64_t worth of FFDC
+ uint64_t l_ffdc = 0x1122334455667788ULL;
- o_ffdc.iv_data = 0x11223344;
+ fapi::ReturnCodeFfdc::addEIFfdc(o_rc, l_ffdc);
- return l_rc;
+ FAPI_INF("hwpTestFfdc1: End HWP");
+ return fapi::FAPI_RC_SUCCESS;
}
} // extern "C"
OpenPOWER on IntegriCloud