]> git.proxmox.com Git - mirror_edk2.git/commitdiff
ShellPkg/Ifconfig6: Update error message and add a new line
authorhegdenag <nagaraj-p.hegde@hpe.com>
Tue, 1 Aug 2017 05:47:42 +0000 (13:47 +0800)
committerRuiyu Ni <ruiyu.ni@intel.com>
Tue, 12 Sep 2017 08:41:08 +0000 (16:41 +0800)
If DAD failed, we print "It failed to set", print the IPv6
address and exit. We need a better error string
and also, after printing the IPv6 address, we need a new line
else the Shell> prompt will overwrite the IPv6 address. Fixed
these issues in this patch.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Hegde Nagaraj P <nagaraj-p.hegde@hpe.com>
Reviewed-by: Sriram Subramanian <sriram-s@hpe.com>
Reviewed-by: Wu Jiaxin <jiaxin.wu@intel.com>
ShellPkg/Library/UefiShellNetwork2CommandsLib/Ifconfig6.c
ShellPkg/Library/UefiShellNetwork2CommandsLib/UefiShellNetwork2CommandsLib.uni

index 6d8df8031b8f30a61120a08e2a08defbf90dcfa4..377a163086cdda94e0559cb8e034e799a493e916 100644 (file)
@@ -2,6 +2,7 @@
   The implementation for Shell command IfConfig6.\r
 \r
   Copyright (c) 2016, Intel Corporation. All rights reserved.<BR>\r
+  (C) Copyright 2017 Hewlett Packard Enterprise Development LP<BR>\r
 \r
   This program and the accompanying materials\r
   are licensed and made available under the terms and conditions of the BSD License\r
@@ -1490,6 +1491,7 @@ IfConfig6SetInterfaceInfo (
             &CfgManAddr[Index].Address,\r
             &CfgManAddr[Index].PrefixLength\r
             );\r
+          ShellPrintHiiEx (-1, -1, NULL, STRING_TOKEN (STR_IFCONFIG6_INFO_NEWLINE), gShellNetwork2HiiHandle);\r
         }\r
       }\r
 \r
index 5c0fef0ff76f3e2818f661b47f3b582b48c7aab8..2b2327bcd3e3d33480ad854e8617f569276b2d5d 100644 (file)
@@ -2,6 +2,7 @@
 \r
   String definitions for UEFI Shell network 2 commands\r
   Copyright (c) 2016, Intel Corporation. All rights reserved.<BR>\r
+  (C) Copyright 2017 Hewlett Packard Enterprise Development LP<BR>\r
 \r
   This program and the accompanying materials\r
   are licensed and made available under the terms and conditions\r
@@ -92,7 +93,7 @@
                                                                   "Hint: Please type 'IfConfig6 -?' for help info.\r\n"\r
 #string STR_IFCONFIG6_ERR_UNKNOWN_COMMAND      #language en-US    "Unknown commands. Bad command %H%s%N is skipped.\r\n"\r
                                                                   "Hint: Please type 'IfConfig6 -?' for help info.\r\n"\r
-#string STR_IFCONFIG6_ERR_ADDRESS_FAILED       #language en-US    "It failed to set .\r\n"\r
+#string STR_IFCONFIG6_ERR_ADDRESS_FAILED       #language en-US    "Failed to configure IPv6 address: "\r
 \r
 \r
 #string STR_GET_HELP_PING6                     #language en-US ""\r