commit | ebf8bb54afa616ce6caa379fb8be3239d4ad7cd1 | [log] [tgz] |
---|---|---|
author | Sagar Srinivas <sagar.srinivas@ibm.com> | Fri Oct 06 01:15:55 2023 -0500 |
committer | Sagar Srinivas <sagar.srinivas@ibm.com> | Mon Oct 16 07:05:40 2023 -0500 |
tree | cb49077b0d0e367df3d596c7785396ccbd59e45c | |
parent | d310f8213a41b29c8e36e67c1a9570b72deaa958 [diff] [blame] |
Maintain consistency of entity instance variable In order to maintain the consistency of variable names across PDR structures, change the entity_instance_num of pldm_pdr_fru_record_set to entity_instance in accordance to the changes done in libpldm - https://gerrit.openbmc.org/c/openbmc/libpldm/+/65146/7 https://gerrit.openbmc.org/c/openbmc/libpldm/+/65150/6 Signed-off-by: Sagar Srinivas <sagar.srinivas@ibm.com> Change-Id: Icbd340495957d90c5c43273d1f3f0eae2de83697
diff --git a/host-bmc/host_pdr_handler.cpp b/host-bmc/host_pdr_handler.cpp index 2e30582..a9a914b 100644 --- a/host-bmc/host_pdr_handler.cpp +++ b/host-bmc/host_pdr_handler.cpp
@@ -986,7 +986,8 @@ const_cast<uint8_t*>(pdr.data()) + sizeof(pldm_pdr_hdr)); if (fruPdr->entity_type == entity.entity_type && - fruPdr->entity_instance_num == entity.entity_instance_num) + fruPdr->entity_instance == entity.entity_instance_num && + fruPdr->container_id == entity.entity_container_id) { return fruPdr->fru_rsi; }