diff options
author | CamVan Nguyen <ctnguyen@us.ibm.com> | 2011-11-02 10:25:41 -0500 |
---|---|---|
committer | Andrew J. Geissler <andrewg@us.ibm.com> | 2011-11-02 10:53:51 -0500 |
commit | b72ee9b1f333be7847d694bfa2c5fbafa2e4c487 (patch) | |
tree | 14868c0c6d98653b6669961fba660f2238609969 /src/usr/hwpf/hwp/fapiHwpExecInitFile.C | |
parent | a9546cd1f115920da46cc485762e643f93c1fffc (diff) | |
download | blackbird-hostboot-b72ee9b1f333be7847d694bfa2c5fbafa2e4c487.tar.gz blackbird-hostboot-b72ee9b1f333be7847d694bfa2c5fbafa2e4c487.zip |
Updated hwpExecInitFile test case in hwpInitialTest
Added unit test for hwpExecInitFile
Trace initfile version
Change-Id: I5ff2ba7d5977a157a47f5f59252b52e17bf69d2f
Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/476
Tested-by: Jenkins Server
Reviewed-by: Andrew J. Geissler <andrewg@us.ibm.com>
Diffstat (limited to 'src/usr/hwpf/hwp/fapiHwpExecInitFile.C')
-rw-r--r-- | src/usr/hwpf/hwp/fapiHwpExecInitFile.C | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/src/usr/hwpf/hwp/fapiHwpExecInitFile.C b/src/usr/hwpf/hwp/fapiHwpExecInitFile.C index 2019c8ed2..418ab484f 100644 --- a/src/usr/hwpf/hwp/fapiHwpExecInitFile.C +++ b/src/usr/hwpf/hwp/fapiHwpExecInitFile.C @@ -248,8 +248,9 @@ fapi::ReturnCode hwpExecInitFile(const fapi::Target & i_Target, if (IF_SYNTAX_VERSION != *(reinterpret_cast<const uint32_t *>(l_offset))) { - FAPI_ERR("hwpExecInitFile: Syntax version 0x%x Expected version 0x%x", - *(const uint32_t *)l_offset, IF_SYNTAX_VERSION); + FAPI_ERR("hwpExecInitFile: %s Syntax version %u Expected version 0x%x", + i_file, *(reinterpret_cast<const uint32_t *>(l_offset)), + IF_SYNTAX_VERSION); uint32_t l_ffdc = *(const uint32_t *)l_offset; uint32_t & FFDC_IF_VER = l_ffdc; // GENERIC IDENTIFIER @@ -265,6 +266,10 @@ fapi::ReturnCode hwpExecInitFile(const fapi::Target & i_Target, } else { + FAPI_IMP("hwpExecInitFile: %s Syntax version %u CVS version %s", + i_file, *(reinterpret_cast<const uint32_t *>(l_offset)), + (l_offset + 4)); + //Save the data ifInfo_t l_ifInfo; memset(&l_ifInfo, 0, sizeof(ifInfo_t)); @@ -1239,7 +1244,7 @@ fapi::ReturnCode writeScom(const ifData_t & i_ifData, const uint32_t i_scomNum, { //Perform a PutScomUnderMask operation on the target - #ifdef HOSTBOOT_DEBUG + #ifdef HWPEXECINITFILE_DEBUG l_rc = fapiGetScom(l_target, l_addr, l_scomData); FAPI_DBG("hwpExecInitFile: writeScom: Data read 0x%.16llX", l_scomData.getDoubleWord(0)); @@ -1291,7 +1296,7 @@ fapi::ReturnCode writeScom(const ifData_t & i_ifData, const uint32_t i_scomNum, FAPI_ERR("hwpExecInitFile: Error from fapiPutScomUnderMask"); break; } - #ifdef HOSTBOOT_DEBUG + #ifdef HWPEXECINITFILE_DEBUG else { l_rc = fapiGetScom(l_target, l_addr, l_scomData); @@ -1304,7 +1309,7 @@ fapi::ReturnCode writeScom(const ifData_t & i_ifData, const uint32_t i_scomNum, { //Perform a PutScom operation on the target - #ifdef HOSTBOOT_DEBUG + #ifdef HWPEXECINITFILE_DEBUG l_rc = fapiGetScom(l_target, l_addr, l_scomData); FAPI_DBG("hwpExecInitFile: writeScom: Data read 0x%.16llX", l_scomData.getDoubleWord(0)); @@ -1331,7 +1336,7 @@ fapi::ReturnCode writeScom(const ifData_t & i_ifData, const uint32_t i_scomNum, { FAPI_ERR("hwpExecInitFile: Error from fapiPutScom"); } - #ifdef HOSTBOOT_DEBUG + #ifdef HWPEXECINITFILE_DEBUG else { l_rc = fapiGetScom(l_target, l_addr, l_scomData); |