summaryrefslogtreecommitdiffstats
path: root/ShellPkg/Library/UefiShellNetwork2CommandsLib/Ifconfig6.c
diff options
context:
space:
mode:
authorhegdenag <nagaraj-p.hegde@hpe.com>2017-08-01 13:47:42 +0800
committerRuiyu Ni <ruiyu.ni@intel.com>2017-09-12 16:41:08 +0800
commit1f4807074005a43dc01eca8f1a1d4884fdf9d8a9 (patch)
tree437c05fa057112a8b59551c385f3cd62c2cf7935 /ShellPkg/Library/UefiShellNetwork2CommandsLib/Ifconfig6.c
parent8b134dfdad4ea17b8c85111248df496894f81978 (diff)
downloadedk2-1f4807074005a43dc01eca8f1a1d4884fdf9d8a9.tar.gz
edk2-1f4807074005a43dc01eca8f1a1d4884fdf9d8a9.tar.bz2
edk2-1f4807074005a43dc01eca8f1a1d4884fdf9d8a9.zip
ShellPkg/Ifconfig6: Update error message and add a new line
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>
Diffstat (limited to 'ShellPkg/Library/UefiShellNetwork2CommandsLib/Ifconfig6.c')
-rw-r--r--ShellPkg/Library/UefiShellNetwork2CommandsLib/Ifconfig6.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ShellPkg/Library/UefiShellNetwork2CommandsLib/Ifconfig6.c b/ShellPkg/Library/UefiShellNetwork2CommandsLib/Ifconfig6.c
index 6d8df8031b..377a163086 100644
--- a/ShellPkg/Library/UefiShellNetwork2CommandsLib/Ifconfig6.c
+++ b/ShellPkg/Library/UefiShellNetwork2CommandsLib/Ifconfig6.c
@@ -2,6 +2,7 @@
The implementation for Shell command IfConfig6.
Copyright (c) 2016, Intel Corporation. All rights reserved.<BR>
+ (C) Copyright 2017 Hewlett Packard Enterprise Development LP<BR>
This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
@@ -1490,6 +1491,7 @@ IfConfig6SetInterfaceInfo (
&CfgManAddr[Index].Address,
&CfgManAddr[Index].PrefixLength
);
+ ShellPrintHiiEx (-1, -1, NULL, STRING_TOKEN (STR_IFCONFIG6_INFO_NEWLINE), gShellNetwork2HiiHandle);
}
}