libpldm:Change in the PlatformEventMessage field
This commit does a change in the field name in
PlatformEventMessage responder flow encode, to
allign the naming to the spec.
Tested: with unit tests
Change-Id: I309cdfbf6ebc213944676912246e7fe5e825706b
Signed-off-by: Pavithra Barithaya <pbaritha@in.ibm.com>
diff --git a/libpldm/tests/libpldm_platform_test.cpp b/libpldm/tests/libpldm_platform_test.cpp
index 548ab05..aa45c35 100644
--- a/libpldm/tests/libpldm_platform_test.cpp
+++ b/libpldm/tests/libpldm_platform_test.cpp
@@ -839,14 +839,14 @@
auto response = reinterpret_cast<pldm_msg*>(responseMsg.data());
uint8_t completionCode = 0;
uint8_t instanceId = 0x01;
- uint8_t status = 1;
+ uint8_t platformEventStatus = 0x01;
auto rc = encode_platform_event_message_resp(instanceId, PLDM_SUCCESS,
- status, response);
+ platformEventStatus, response);
EXPECT_EQ(rc, PLDM_SUCCESS);
EXPECT_EQ(completionCode, response->payload[0]);
- EXPECT_EQ(status, response->payload[1]);
+ EXPECT_EQ(platformEventStatus, response->payload[1]);
}
TEST(PlatformEventMessage, testBadEncodeResponse)