summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Geddes <crgeddes@us.ibm.com>2018-11-06 15:18:49 -0600
committerDaniel M. Crowell <dcrowell@us.ibm.com>2018-11-15 10:50:59 -0600
commit0002dbd291516cd3b4d92b9c5a36d16a8846f2ce (patch)
tree4ae29653ba1f43951408ab56c42bbaa69f83be4c
parent16f5d479caf5202b8b219a84bda1877c1a7d4004 (diff)
downloadtalos-hostboot-0002dbd291516cd3b4d92b9c5a36d16a8846f2ce.tar.gz
talos-hostboot-0002dbd291516cd3b4d92b9c5a36d16a8846f2ce.zip
Update fapi2CreatePlatLogTest.H to use the fapi trace buffer
For some reason this testcase was using the runtime trace buffer that is used when we are building up the runtime payload. This commit updates it to use the standard FAPI_INF and FAPI_DBG macros that are used throughout the fapi2 component. Change-Id: Ib5c709a49cc9fbb1f9cd0ef6cb20f9e167a6efd1 Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/68469 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Matt Derksen <mderkse1@us.ibm.com> Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com> Reviewed-by: William G. Hoffa <wghoffa@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
-rw-r--r--src/usr/fapi2/test/fapi2CreatePlatLogTest.H33
1 files changed, 16 insertions, 17 deletions
diff --git a/src/usr/fapi2/test/fapi2CreatePlatLogTest.H b/src/usr/fapi2/test/fapi2CreatePlatLogTest.H
index 99d71354c..1fd9033c0 100644
--- a/src/usr/fapi2/test/fapi2CreatePlatLogTest.H
+++ b/src/usr/fapi2/test/fapi2CreatePlatLogTest.H
@@ -30,8 +30,7 @@
#include <errl/hberrltypes.H>
#include <errl/errlreasoncodes.H>
#include <errl/errlentry.H>
-
-extern trace_desc_t* g_trac_runtime;
+#include <fapi2/fapiPlatTrace.H>
class CreatePlatLogTest : public CxxTest::TestSuite
{
@@ -39,7 +38,7 @@ public:
void testCreatePlatLogCreatorFapi2()
{
- TRACFCOMP(g_trac_runtime, "testCreatePlatLogCreatorFapi2 running");
+ FAPI_INF("testCreatePlatLogCreatorFapi2 running");
fapi2::ReturnCode l_rc = fapi2::FAPI2_RC_INVALID_ATTR_GET;
fapi2::errlSeverity_t l_sev = fapi2::FAPI2_ERRL_SEV_RECOVERED;
@@ -54,7 +53,7 @@ public:
}
else
{
- TRACDCOMP(g_trac_runtime, "testCreatePlatLogCreatorFapi2: ERRL_SEV_RECOVERED passed");
+ FAPI_DBG("testCreatePlatLogCreatorFapi2: ERRL_SEV_RECOVERED passed");
}
l_rc.forgetData();
@@ -72,7 +71,7 @@ public:
}
else
{
- TRACDCOMP(g_trac_runtime, "testCreatePlatLogCreatorFapi2: ERRL_SEV_PREDICTIVE passed");
+ FAPI_DBG("testCreatePlatLogCreatorFapi2: ERRL_SEV_PREDICTIVE passed");
}
l_rc.forgetData();
@@ -91,16 +90,16 @@ public:
}
else
{
- TRACDCOMP(g_trac_runtime, "testCreatePlatLogCreatorFapi2: ERRL_SEV_UNRECOVERABLE passed");
+ FAPI_DBG("testCreatePlatLogCreatorFapi2: ERRL_SEV_UNRECOVERABLE passed");
}
l_rc.forgetData();
- TRACFCOMP(g_trac_runtime, "testCreatePlatLogCreatorFapi2 done");
+ FAPI_INF("testCreatePlatLogCreatorFapi2 done");
}
void testCreatePlatLogCreatorPlat()
{
- TRACFCOMP(g_trac_runtime, "testCreatePlatLogCreatorPlat running");
+ FAPI_INF("testCreatePlatLogCreatorPlat running");
fapi2::ReturnCode l_rc = fapi2::FAPI2_RC_PLAT_ERR_SEE_DATA;
fapi2::errlSeverity_t l_sev = fapi2::FAPI2_ERRL_SEV_RECOVERED;
@@ -123,7 +122,7 @@ public:
}
else
{
- TRACDCOMP(g_trac_runtime, "testCreatePlatLogCreatorPlat: ERRL_SEV_RECOVERED passed");
+ FAPI_DBG("testCreatePlatLogCreatorPlat: ERRL_SEV_RECOVERED passed");
}
l_rc = fapi2::FAPI2_RC_PLAT_ERR_SEE_DATA;
@@ -148,7 +147,7 @@ public:
}
else
{
- TRACDCOMP(g_trac_runtime, "testCreatePlatLogCreatorPlat: ERRL_SEV_PREDICTIVE passed");
+ FAPI_DBG("testCreatePlatLogCreatorPlat: ERRL_SEV_PREDICTIVE passed");
}
l_rc = fapi2::FAPI2_RC_PLAT_ERR_SEE_DATA;
@@ -173,16 +172,16 @@ public:
}
else
{
- TRACDCOMP(g_trac_runtime, "testCreatePlatLogCreatorPlat: ERRL_SEV_UNRECOVERABLE passed");
+ FAPI_DBG("testCreatePlatLogCreatorPlat: ERRL_SEV_UNRECOVERABLE passed");
}
l_rc.forgetData();
- TRACFCOMP(g_trac_runtime, "testCreatePlatLogCreatorPlat done");
+ FAPI_INF("testCreatePlatLogCreatorPlat done");
}
void testCreatePlatLogCreatorHwp()
{
- TRACFCOMP(g_trac_runtime, "testCreatePlatLogCreatorHwp running");
+ FAPI_INF("testCreatePlatLogCreatorHwp running");
fapi2::ReturnCode l_rc = 0x00000001; // Fake return code wit creator == HWP
fapi2::errlSeverity_t l_sev = fapi2::FAPI2_ERRL_SEV_RECOVERED;
@@ -197,7 +196,7 @@ public:
}
else
{
- TRACDCOMP(g_trac_runtime, "testCreatePlatLogCreatorHwp: ERRL_SEV_RECOVERED passed");
+ FAPI_DBG("testCreatePlatLogCreatorHwp: ERRL_SEV_RECOVERED passed");
}
l_rc.forgetData();
@@ -214,7 +213,7 @@ public:
}
else
{
- TRACDCOMP(g_trac_runtime, "testCreatePlatLogCreatorHwp: ERRL_SEV_PREDICTIVE passed");
+ FAPI_DBG("testCreatePlatLogCreatorHwp: ERRL_SEV_PREDICTIVE passed");
}
l_rc.forgetData();
@@ -232,11 +231,11 @@ public:
}
else
{
- TRACDCOMP(g_trac_runtime, "testCreatePlatLogCreatorHwp: ERRL_SEV_UNRECOVERABLE passed");
+ FAPI_DBG("testCreatePlatLogCreatorHwp: ERRL_SEV_UNRECOVERABLE passed");
}
l_rc.forgetData();
- TRACFCOMP(g_trac_runtime, "testCreatePlatLogCreatorHwp done");
+ FAPI_INF("testCreatePlatLogCreatorHwp done");
}
};
OpenPOWER on IntegriCloud