public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "Ni, Ruiyu" <ruiyu.ni@intel.com>
To: "Ni, Ruiyu" <ruiyu.ni@intel.com>,
	"edk2-devel@lists.01.org" <edk2-devel@lists.01.org>
Cc: Tapan Shah <tapandshah@hpe.com>,
	"Carsey, Jaben" <jaben.carsey@intel.com>
Subject: Re: [PATCH] ShellPkg/alias: Return status for alias deletion
Date: Tue, 6 Jun 2017 21:26:11 +0000	[thread overview]
Message-ID: <3DAAB008-D40F-48B1-B8AA-0F418CA19FE3@intel.com> (raw)
In-Reply-To: <734D49CCEBEEF84792F5B80ED585239D5B988FB6@SHSMSX104.ccr.corp.intel.com>

Including Jaben for review.

Send from mobile phone

> 在 2017年6月6日,下午4:43,Ni, Ruiyu <ruiyu.ni@intel.com> 写道:
> 
> Including Tapan.
> 
> Thanks/Ray
> 
>> -----Original Message-----
>> From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf Of Ruiyu
>> Ni
>> Sent: Tuesday, June 6, 2017 4:29 PM
>> To: edk2-devel@lists.01.org
>> Subject: [edk2] [PATCH] ShellPkg/alias: Return status for alias deletion
>> 
>> Contributed-under: TianoCore Contribution Agreement 1.0
>> Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
>> Cc: Tapan Shah <tapandshah@hpe.com>
>> ---
>> ShellPkg/Library/UefiShellLevel3CommandsLib/Alias.c | 11 ++++++++++-
>> 1 file changed, 10 insertions(+), 1 deletion(-)
>> 
>> diff --git a/ShellPkg/Library/UefiShellLevel3CommandsLib/Alias.c
>> b/ShellPkg/Library/UefiShellLevel3CommandsLib/Alias.c
>> index 5a3b7e5913..7277bd4b90 100644
>> --- a/ShellPkg/Library/UefiShellLevel3CommandsLib/Alias.c
>> +++ b/ShellPkg/Library/UefiShellLevel3CommandsLib/Alias.c
>> @@ -2,7 +2,7 @@
>>   Main file for Alias shell level 3 function.
>> 
>>   (C) Copyright 2015 Hewlett-Packard Development Company, L.P.<BR>
>> -  Copyright (c) 2009 - 2016, Intel Corporation. All rights reserved. <BR>
>> +  Copyright (c) 2009 - 2017, Intel Corporation. All rights reserved.
>> + <BR>
>>   This program and the accompanying materials
>>   are licensed and made available under the terms and conditions of the BSD
>> License
>>   which accompanies this distribution.  The full text of the license may be found
>> at @@ -151,6 +151,15 @@ ShellCommandRunAlias (
>>       // delete an alias
>>       //
>>       Status = gEfiShellProtocol->SetAlias(Param1, NULL, TRUE, FALSE);
>> +      if (EFI_ERROR(Status)) {
>> +        if (Status == EFI_ACCESS_DENIED) {
>> +          ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_ERR_AD),
>> gShellLevel3HiiHandle, L"alias");
>> +          ShellStatus = SHELL_ACCESS_DENIED;
>> +        } else {
>> +          ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_ERR_UK),
>> gShellLevel3HiiHandle, L"alias", Status);
>> +          ShellStatus = SHELL_DEVICE_ERROR;
>> +        }
>> +      }
>>     } else if (ShellCommandLineGetCount(Package) == 3) {
>>       //
>>       // must be adding an alias
>> --
>> 2.12.2.windows.2
>> 
>> _______________________________________________
>> edk2-devel mailing list
>> edk2-devel@lists.01.org
>> https://lists.01.org/mailman/listinfo/edk2-devel

  reply	other threads:[~2017-06-06 21:25 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-06-06  8:29 [PATCH] ShellPkg/alias: Return status for alias deletion Ruiyu Ni
2017-06-06  8:43 ` Ni, Ruiyu
2017-06-06 21:26   ` Ni, Ruiyu [this message]
2017-06-06 21:37     ` Carsey, Jaben
2017-06-06 22:03       ` Shah, Tapan
2017-06-07 15:35       ` Shah, Tapan
2017-06-07 22:14         ` Ni, Ruiyu
2017-06-08 16:00           ` Shah, Tapan
2017-06-08 16:10             ` Carsey, Jaben
2017-06-08 16:14               ` Shah, Tapan
2017-06-08 16:16                 ` Carsey, Jaben
2017-06-08 16:21                   ` Shah, Tapan
2017-06-09  3:14                     ` Ni, Ruiyu

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=3DAAB008-D40F-48B1-B8AA-0F418CA19FE3@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