summaryrefslogtreecommitdiffstats
path: root/src/include
diff options
context:
space:
mode:
authorcrgeddes <crgeddes@us.ibm.com>2016-08-10 10:15:01 -0500
committerDaniel M. Crowell <dcrowell@us.ibm.com>2016-08-24 14:31:08 -0400
commitab00e2c95959ff546d6da72bde6bf2e664f62aff (patch)
tree97de7bb1a5f981c5082d9220ae66088a2b958080 /src/include
parentd15fae1e99b68953675d74a30caac80cbe5c72aa (diff)
downloadtalos-hostboot-ab00e2c95959ff546d6da72bde6bf2e664f62aff.tar.gz
talos-hostboot-ab00e2c95959ff546d6da72bde6bf2e664f62aff.zip
Fix pib err mask to actually look at the Userdetails section data
Previously there was a bug with pib_err_mask where we incorrectly tried to cast a userdetails object into an incorrect structure. This caused an issue when we tried to access members of the struct that we were casting to. This commit changes the function that provides lookup of userdetails sections so it only returns the user data that the user details section contains. Change-Id: I38d6bbef8525a177b3f1baf72ea042c8e756c34d Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/28105 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: Matt Derksen <v2cibmd@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/include')
-rw-r--r--src/include/usr/errl/errlentry.H11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/include/usr/errl/errlentry.H b/src/include/usr/errl/errlentry.H
index f8e0a32e8..2837d61ac 100644
--- a/src/include/usr/errl/errlentry.H
+++ b/src/include/usr/errl/errlentry.H
@@ -585,13 +585,16 @@ public:
/**
* @brief Return the list of User Detail sections
*
- * @param[in] i_compId Component id associated with the sections to return
+ * @param[in] i_compId Component id associated with the data to return
+ * @param[in] i_subSect Subsection id associated with the data to return
*
- * NOTE: You can pass COMP_ID 0 into this function for wildcard
+ * //NOTE: You can pass COMP_ID or subsect 0 into this
+ * function for wildcard
*
- * @return vector of user details sections of specific component id
+ * @return vector of void pointers that point to the data buffer inside
+ * of a user details section
*/
- std::vector<ErrlUD*> getUDSections(compId_t i_compId);
+ std::vector<void*> getUDSections(compId_t i_compId, uint8_t i_subSect);
private:
OpenPOWER on IntegriCloud