summaryrefslogtreecommitdiffstats
path: root/MdePkg/Library/PeiExtractGuidedSectionLib
diff options
context:
space:
mode:
authorlgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524>2007-10-18 09:12:59 +0000
committerlgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524>2007-10-18 09:12:59 +0000
commite6c560aad63b09e6aaee3ccc65be462651772fe5 (patch)
treeea8a7bd938ec2060e395df4b86f3f97beabfc500 /MdePkg/Library/PeiExtractGuidedSectionLib
parentd7f73f568f45c863b44fb2a0fecae8b8c36311d4 (diff)
downloadedk2-e6c560aad63b09e6aaee3ccc65be462651772fe5.tar.gz
edk2-e6c560aad63b09e6aaee3ccc65be462651772fe5.tar.bz2
edk2-e6c560aad63b09e6aaee3ccc65be462651772fe5.zip
Make GuidedSection library instance to follow the value of GuidedSectionExtraction protocol/PPI defined in PI spec.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4165 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdePkg/Library/PeiExtractGuidedSectionLib')
-rw-r--r--MdePkg/Library/PeiExtractGuidedSectionLib/PeiExtractGuidedSectionLib.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/MdePkg/Library/PeiExtractGuidedSectionLib/PeiExtractGuidedSectionLib.c b/MdePkg/Library/PeiExtractGuidedSectionLib/PeiExtractGuidedSectionLib.c
index 51cf29d1f4..bbe6b50872 100644
--- a/MdePkg/Library/PeiExtractGuidedSectionLib/PeiExtractGuidedSectionLib.c
+++ b/MdePkg/Library/PeiExtractGuidedSectionLib/PeiExtractGuidedSectionLib.c
@@ -188,7 +188,7 @@ ExtractGuidedSectionRegisterHandlers (
Get information from the guided section. This function first gets the guid value
from guided section header, then match this guid in the registered extract Handler list
to its corresponding getinfo Handler.
- If not found, RETURN_UNSUPPORTED will be return.
+ If not found, RETURN_INVALID_PARAMETER will be return.
If found, it will call the getinfo Handler to get the required size and attribute.
It will ASSERT () if the pointer to OutputBufferSize is NULL.
@@ -201,8 +201,8 @@ ExtractGuidedSectionRegisterHandlers (
@param[out] SectionAttribute The attribute of the input guided section.
@retval RETURN_SUCCESS Get the required information successfully.
- @retval RETURN_UNSUPPORTED Guided section data is not supported.
- @retval RETURN_INVALID_PARAMETER The input data can't be parsed correctly.
+ @retval RETURN_INVALID_PARAMETER The input data can't be parsed correctly.
+ The GUID in InputSection does not match any registered guid list.
**/
RETURN_STATUS
@@ -250,7 +250,7 @@ ExtractGuidedSectionGetInfo (
// Not found, the input guided section is not supported.
//
if (Index == HandlerInfo->NumberOfExtractHandler) {
- return RETURN_UNSUPPORTED;
+ return RETURN_INVALID_PARAMETER;
}
//
@@ -268,7 +268,7 @@ ExtractGuidedSectionGetInfo (
Extract data from the guided section. This function first gets the guid value
from guided section header, then match this guid in the registered extract Handler list
to its corresponding extract Handler.
- If not found, RETURN_UNSUPPORTED will be return.
+ If not found, RETURN_INVALID_PARAMETER will be return.
If found, it will call this extract Handler to get output data and AuthenticationStatus.
It will ASSERT () if the pointer to OutputBuffer is NULL.
@@ -285,8 +285,8 @@ ExtractGuidedSectionGetInfo (
authentication status of the output buffer.
@retval RETURN_SUCCESS Get the output data, size and AuthenticationStatus successfully.
- @retval RETURN_UNSUPPORTED Guided section data is not supported to be decoded.
- @retval RETURN_INVALID_PARAMETER The input data can't be parsed correctly.
+ @retval RETURN_INVALID_PARAMETER The input data can't be parsed correctly.
+ The GUID in InputSection does not match any registered guid list.
**/
RETURN_STATUS
@@ -327,7 +327,7 @@ ExtractGuidedSectionDecode (
// Not found, the input guided section is not supported.
//
if (Index == HandlerInfo->NumberOfExtractHandler) {
- return RETURN_UNSUPPORTED;
+ return RETURN_INVALID_PARAMETER;
}
//