* [PATCH] MdeModulePkg Variable: Fix comment typo 'end' to 'start'
@ 2018-09-27 1:49 Star Zeng
2018-09-27 2:45 ` Ni, Ruiyu
0 siblings, 1 reply; 2+ messages in thread
From: Star Zeng @ 2018-09-27 1:49 UTC (permalink / raw)
To: edk2-devel; +Cc: Star Zeng, Liming Gao, Ruiyu Ni, Jian J Wang
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=1214
This patch only updates comment and function description, so has
no functionality impact.
This patch fixes comment typo 'end' to 'start' in GetStartPointer.
GetStartPointer for PEI and DXE has aligned function description,
but GetEndPointer does not.
This patch also aligns GetEndPointer's function description for
PEI and DXE.
Cc: Liming Gao <liming.gao@intel.com>
Cc: Ruiyu Ni <ruiyu.ni@intel.com>
Cc: Jian J Wang <jian.j.wang@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Star Zeng <star.zeng@intel.com>
---
MdeModulePkg/Universal/Variable/Pei/Variable.c | 14 +++++++++-----
MdeModulePkg/Universal/Variable/RuntimeDxe/Variable.c | 2 +-
2 files changed, 10 insertions(+), 6 deletions(-)
diff --git a/MdeModulePkg/Universal/Variable/Pei/Variable.c b/MdeModulePkg/Universal/Variable/Pei/Variable.c
index 96a52f23d1c1..77b3eaeb210d 100644
--- a/MdeModulePkg/Universal/Variable/Pei/Variable.c
+++ b/MdeModulePkg/Universal/Variable/Pei/Variable.c
@@ -57,7 +57,7 @@ PeimInitializeVariableServices (
@param VarStoreHeader Pointer to the Variable Store Header.
- @return Pointer to the first variable header
+ @return Pointer to the first variable header.
**/
VARIABLE_HEADER *
@@ -66,18 +66,22 @@ GetStartPointer (
)
{
//
- // The end of variable store
+ // The start of variable store
//
return (VARIABLE_HEADER *) HEADER_ALIGN (VarStoreHeader + 1);
}
/**
- This code gets the pointer to the last variable memory pointer byte.
- @param VarStoreHeader Pointer to the Variable Store Header.
+ Gets the pointer to the end of the variable storage area.
+
+ This function gets pointer to the end of the variable storage
+ area, according to the input variable store header.
+
+ @param VarStoreHeader Pointer to the Variable Store Header.
- @return VARIABLE_HEADER* pointer to last unavailable Variable Header.
+ @return Pointer to the end of the variable storage area.
**/
VARIABLE_HEADER *
diff --git a/MdeModulePkg/Universal/Variable/RuntimeDxe/Variable.c b/MdeModulePkg/Universal/Variable/RuntimeDxe/Variable.c
index 1ea2f84dda68..dc8622db8138 100644
--- a/MdeModulePkg/Universal/Variable/RuntimeDxe/Variable.c
+++ b/MdeModulePkg/Universal/Variable/RuntimeDxe/Variable.c
@@ -681,7 +681,7 @@ GetStartPointer (
)
{
//
- // The end of variable store.
+ // The start of variable store.
//
return (VARIABLE_HEADER *) HEADER_ALIGN (VarStoreHeader + 1);
}
--
2.7.0.windows.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] MdeModulePkg Variable: Fix comment typo 'end' to 'start'
2018-09-27 1:49 [PATCH] MdeModulePkg Variable: Fix comment typo 'end' to 'start' Star Zeng
@ 2018-09-27 2:45 ` Ni, Ruiyu
0 siblings, 0 replies; 2+ messages in thread
From: Ni, Ruiyu @ 2018-09-27 2:45 UTC (permalink / raw)
To: Star Zeng, edk2-devel; +Cc: Liming Gao, Jian J Wang
On 9/27/2018 9:49 AM, Star Zeng wrote:
> REF: https://bugzilla.tianocore.org/show_bug.cgi?id=1214
> This patch only updates comment and function description, so has
> no functionality impact.
>
> This patch fixes comment typo 'end' to 'start' in GetStartPointer.
>
> GetStartPointer for PEI and DXE has aligned function description,
> but GetEndPointer does not.
> This patch also aligns GetEndPointer's function description for
> PEI and DXE.
>
> Cc: Liming Gao <liming.gao@intel.com>
> Cc: Ruiyu Ni <ruiyu.ni@intel.com>
> Cc: Jian J Wang <jian.j.wang@intel.com>
> Contributed-under: TianoCore Contribution Agreement 1.1
> Signed-off-by: Star Zeng <star.zeng@intel.com>
> ---
> MdeModulePkg/Universal/Variable/Pei/Variable.c | 14 +++++++++-----
> MdeModulePkg/Universal/Variable/RuntimeDxe/Variable.c | 2 +-
> 2 files changed, 10 insertions(+), 6 deletions(-)
>
> diff --git a/MdeModulePkg/Universal/Variable/Pei/Variable.c b/MdeModulePkg/Universal/Variable/Pei/Variable.c
> index 96a52f23d1c1..77b3eaeb210d 100644
> --- a/MdeModulePkg/Universal/Variable/Pei/Variable.c
> +++ b/MdeModulePkg/Universal/Variable/Pei/Variable.c
> @@ -57,7 +57,7 @@ PeimInitializeVariableServices (
>
> @param VarStoreHeader Pointer to the Variable Store Header.
>
> - @return Pointer to the first variable header
> + @return Pointer to the first variable header.
>
> **/
> VARIABLE_HEADER *
> @@ -66,18 +66,22 @@ GetStartPointer (
> )
> {
> //
> - // The end of variable store
> + // The start of variable store
> //
> return (VARIABLE_HEADER *) HEADER_ALIGN (VarStoreHeader + 1);
> }
>
>
> /**
> - This code gets the pointer to the last variable memory pointer byte.
>
> - @param VarStoreHeader Pointer to the Variable Store Header.
> + Gets the pointer to the end of the variable storage area.
> +
> + This function gets pointer to the end of the variable storage
> + area, according to the input variable store header.
> +
> + @param VarStoreHeader Pointer to the Variable Store Header.
>
> - @return VARIABLE_HEADER* pointer to last unavailable Variable Header.
> + @return Pointer to the end of the variable storage area.
>
> **/
> VARIABLE_HEADER *
> diff --git a/MdeModulePkg/Universal/Variable/RuntimeDxe/Variable.c b/MdeModulePkg/Universal/Variable/RuntimeDxe/Variable.c
> index 1ea2f84dda68..dc8622db8138 100644
> --- a/MdeModulePkg/Universal/Variable/RuntimeDxe/Variable.c
> +++ b/MdeModulePkg/Universal/Variable/RuntimeDxe/Variable.c
> @@ -681,7 +681,7 @@ GetStartPointer (
> )
> {
> //
> - // The end of variable store.
> + // The start of variable store.
> //
> return (VARIABLE_HEADER *) HEADER_ALIGN (VarStoreHeader + 1);
> }
>
Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com>
--
Thanks,
Ray
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-09-27 2:44 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-09-27 1:49 [PATCH] MdeModulePkg Variable: Fix comment typo 'end' to 'start' Star Zeng
2018-09-27 2:45 ` Ni, Ruiyu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox