public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "Ni, Ruiyu" <ruiyu.ni@intel.com>
To: "Gao, Liming" <liming.gao@intel.com>,
	"edk2-devel@lists.01.org" <edk2-devel@lists.01.org>
Subject: Re: [Patch] MdeModulePkg UefiBootManagerLib: Rename BootMenuApp to BootManagerMenuApp
Date: Thu, 1 Sep 2016 02:02:53 +0000	[thread overview]
Message-ID: <734D49CCEBEEF84792F5B80ED585239D58D45B4B@SHSMSX103.ccr.corp.intel.com> (raw)
In-Reply-To: <1472631570-30580-1-git-send-email-liming.gao@intel.com>

Liming,
Please use the term "BootManagerMenu" instead of "BootMenuApp", to avoid confusion when reading from future developers.

BmIsBootMenuAppFilePath
-->
BmIsBootManagerMenuFilePath

With the above change, 
Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com>

Thanks/Ray

> -----Original Message-----
> From: Gao, Liming
> Sent: Wednesday, August 31, 2016 4:20 PM
> To: edk2-devel@lists.01.org
> Cc: Ni, Ruiyu <ruiyu.ni@intel.com>
> Subject: [Patch] MdeModulePkg UefiBootManagerLib: Rename
> BootMenuApp to BootManagerMenuApp
> 
> Rename local function name BootMenuApp to BootManagerMenuApp to
> align to other public function name.
> 
> Cc: Ruiyu Ni <ruiyu.ni@intel.com>
> Contributed-under: TianoCore Contribution Agreement 1.0
> Signed-off-by: Liming Gao <liming.gao@intel.com>
> ---
>  MdeModulePkg/Library/UefiBootManagerLib/BmBoot.c | 20 ++++++++++--
> --------
>  1 file changed, 10 insertions(+), 10 deletions(-)
> 
> diff --git a/MdeModulePkg/Library/UefiBootManagerLib/BmBoot.c
> b/MdeModulePkg/Library/UefiBootManagerLib/BmBoot.c
> index f8a3988..88bb13b 100644
> --- a/MdeModulePkg/Library/UefiBootManagerLib/BmBoot.c
> +++ b/MdeModulePkg/Library/UefiBootManagerLib/BmBoot.c
> @@ -1530,15 +1530,15 @@ EfiBootManagerGetLoadOptionBuffer (  }
> 
>  /**
> -  Check if it's a Device Path pointing to BootMenuApp.
> +  Check if it's a Device Path pointing to BootManagerMenuApp.
> 
>    @param  DevicePath     Input device path.
> 
> -  @retval TRUE   The device path is BootMenuApp File Device Path.
> -  @retval FALSE  The device path is NOT BootMenuApp File Device Path.
> +  @retval TRUE   The device path is BootManagerMenuApp File Device Path.
> +  @retval FALSE  The device path is NOT BootManagerMenuApp File Device
> Path.
>  **/
>  BOOLEAN
> -BmIsBootMenuAppFilePath (
> +BmIsBootManagerMenuAppFilePath (
>    EFI_DEVICE_PATH_PROTOCOL     *DevicePath
>  )
>  {
> @@ -1645,7 +1645,7 @@ EfiBootManagerBoot (
>    // 3. Signal the EVT_SIGNAL_READY_TO_BOOT event when we are about to
> load and execute
>    //    the boot option.
>    //
> -  if (BmIsBootMenuAppFilePath (BootOption->FilePath)) {
> +  if (BmIsBootManagerMenuAppFilePath (BootOption->FilePath)) {
>      DEBUG ((EFI_D_INFO, "[Bds] Booting Boot Manager Menu.\n"));
>      BmStopHotkeyService (NULL, NULL);
>    } else {
> @@ -2070,9 +2070,9 @@ BmEnumerateBootOptions (
>           );
>    for (Index = 0; Index < HandleCount; Index++) {
>      //
> -    // Ignore BootMenuApp. its boot option will be created by
> BmRegisterBootManagerMenu().
> +    // Ignore BootManagerMenuApp. its boot option will be created by
> BmRegisterBootManagerMenu().
>      //
> -    if (BmIsBootMenuAppFilePath (DevicePathFromHandle (Handles[Index])))
> {
> +    if (BmIsBootManagerMenuAppFilePath (DevicePathFromHandle
> + (Handles[Index]))) {
>        continue;
>      }
> 
> @@ -2212,7 +2212,7 @@ BmRegisterBootManagerMenu (
>    DevicePath = NULL;
>    Description = NULL;
>    //
> -  // Try to find BootMenuApp from LoadFile protocol
> +  // Try to find BootManagerMenuApp from LoadFile protocol
>    //
>    gBS->LocateHandleBuffer (
>           ByProtocol,
> @@ -2222,7 +2222,7 @@ BmRegisterBootManagerMenu (
>           &Handles
>           );
>    for (Index = 0; Index < HandleCount; Index++) {
> -    if (BmIsBootMenuAppFilePath (DevicePathFromHandle (Handles[Index])))
> {
> +    if (BmIsBootManagerMenuAppFilePath (DevicePathFromHandle
> + (Handles[Index]))) {
>        DevicePath  = DuplicateDevicePath (DevicePathFromHandle
> (Handles[Index]));
>        Description = BmGetBootDescription (Handles[Index]);
>        break;
> @@ -2331,7 +2331,7 @@ EfiBootManagerGetBootManagerMenu (
>    BootOptions = EfiBootManagerGetLoadOptions (&BootOptionCount,
> LoadOptionTypeBoot);
> 
>    for (Index = 0; Index < BootOptionCount; Index++) {
> -    if (BmIsBootMenuAppFilePath (BootOptions[Index].FilePath)) {
> +    if (BmIsBootManagerMenuAppFilePath (BootOptions[Index].FilePath)) {
>          Status = EfiBootManagerInitializeLoadOption (
>                     BootOption,
>                     BootOptions[Index].OptionNumber,
> --
> 2.8.0.windows.1



      reply	other threads:[~2016-09-01  2:02 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-08-31  8:19 [Patch] MdeModulePkg UefiBootManagerLib: Rename BootMenuApp to BootManagerMenuApp Liming Gao
2016-09-01  2:02 ` Ni, Ruiyu [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=734D49CCEBEEF84792F5B80ED585239D58D45B4B@SHSMSX103.ccr.corp.intel.com \
    --to=devel@edk2.groups.io \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox