]> git.proxmox.com Git - mirror_edk2.git/commitdiff
ShellPkg: Update the error prompt for ping6 command.
authorZhang Lubo <lubo.zhang@intel.com>
Fri, 1 Jul 2016 06:12:31 +0000 (14:12 +0800)
committerJiaxin Wu <jiaxin.wu@intel.com>
Tue, 5 Jul 2016 08:48:31 +0000 (16:48 +0800)
when we use the ping6 command without configuring the network
interface, it should give correct prompt to users.

Cc: Hegde Nagaraj P <nagaraj-p.hegde@hpe.com>
Cc: Fu Siyuan <siyuan.fu@intel.com>
Cc: Wu Jiaxin <jiaxin.wu@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Zhang Lubo <lubo.zhang@intel.com>
Reviewed-by: Sriram Subramanian <sriram-s@hpe.com>
Reviewed-by: Hegde, Nagaraj P <nagaraj-p.hegde@hpe.com>
Reviewed-By: Wu Jiaxin <jiaxin.wu@intel.com>
ShellPkg/Library/UefiShellNetwork2CommandsLib/Ping6.c
ShellPkg/Library/UefiShellNetwork2CommandsLib/UefiShellNetwork2CommandsLib.uni

index e4ae977eb579822622c6016e4aba73ef6fbd1950..4496802eac6dbce77657fbaaf31b552fadf9a353 100644 (file)
@@ -826,7 +826,7 @@ Ping6CreateIpInstance (
   //\r
 \r
   if (HandleIndex == HandleNum) {\r
-    ShellPrintHiiEx (-1, -1, NULL, STRING_TOKEN (STR_PING6_SOURCE_NOT_FOUND), gShellNetwork2HiiHandle, mIp6SrcString);\r
+    ShellPrintHiiEx (-1, -1, NULL, STRING_TOKEN (STR_PING6_CONFIGD_NIC_NF), gShellNetwork2HiiHandle);\r
     Status = EFI_NOT_FOUND;\r
     goto ON_ERROR;\r
   }\r
index fb2bfab2bd4e0596f2079e42d2ff7b16c6f9e619..40e0284bfa0b953b00809daf47997f25c009a879 100644 (file)
@@ -31,7 +31,7 @@
 #string STR_PING6_IP6_CONFIG               #language en-US  "%Ping6: The process of Ip6 Configure %r\r\n"\r
 #string STR_PING6_IP6CFG_GETDATA           #language en-US  "%Ping6: Get data of the interface information %r\r\n"\r
 #string STR_PING6_SEND_REQUEST             #language en-US  "Echo request sequence %d fails.\r\n"\r
-#string STR_PING6_SOURCE_NOT_FOUND         #language en-US  "Source %s not found.\r\n"\r
+#string STR_PING6_CONFIGD_NIC_NF           #language en-US  "%Ping6: No configured interfaces were found.\r\n"\r
 #string STR_PING6_NOSOURCE_INDOMAIN        #language en-US  "No sources in %s's multicast domain.\r\n"\r
 #string STR_PING6_START                    #language en-US  "Ping %s %d data bytes\r\n"\r
 #string STR_PING6_TIMEOUT                  #language en-US  "Echo request sequence %d timeout.\r\n"\r