phal: Corrected condition to add trace for FFDC
Change-Id: I852ecaf5d2402131278fd134b2875d94b0b10e16
Signed-off-by: Ramesh Iyyar <rameshi1@in.ibm.com>
diff --git a/phalerror/phal_error.cpp b/phalerror/phal_error.cpp
index 5cd8eca..9f08f5b 100644
--- a/phalerror/phal_error.cpp
+++ b/phalerror/phal_error.cpp
@@ -270,10 +270,8 @@
FFDC ffdc;
libekb_get_ffdc(ffdc);
- log<level::INFO>(fmt::format("Collected pHAL FFDC. "
- "MSG: {}",
- ffdc.message)
- .c_str());
+ log<level::INFO>(
+ fmt::format("PHAL FFDC: Return Message[{}]", ffdc.message).c_str());
// To store callouts details in json format as per pel expectation.
json jsonCalloutDataList;
@@ -424,7 +422,7 @@
jsonCalloutDataList.emplace_back(jsonCalloutData);
});
}
- else if ((ffdc.ffdc_type != FFDC_TYPE_NONE) ||
+ else if ((ffdc.ffdc_type != FFDC_TYPE_NONE) &&
(ffdc.ffdc_type != FFDC_TYPE_UNSUPPORTED))
{
log<level::ERR>(