mirror of https://github.com/acidanthera/audk.git
Co-work with patch V11137 to refine the Hii menu.
1. Move the Mac address string from the form title to form title help for the driver Ipv4 and VLAN. 2. Change the menu show in the device manager from "Network Controller Information" to "ABC Information Sample". git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11138 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
3c4b1122e0
commit
c7f204dba4
Binary file not shown.
Binary file not shown.
|
@ -856,12 +856,12 @@ Ip4ConfigDeviceInit (
|
|||
//
|
||||
Status = NetLibGetMacString (Instance->Controller, Instance->Image, &MacString);
|
||||
if (!EFI_ERROR (Status)) {
|
||||
OldMenuString = HiiGetString (Instance->RegisteredHandle, STRING_TOKEN (STR_IP4_CONFIG_FORM_TITLE), NULL);
|
||||
OldMenuString = HiiGetString (Instance->RegisteredHandle, STRING_TOKEN (STR_IP4_CONFIG_FORM_HELP), NULL);
|
||||
UnicodeSPrint (MenuString, 128, L"%s (MAC:%s)", OldMenuString, MacString);
|
||||
HiiSetString (Instance->RegisteredHandle, STRING_TOKEN (STR_IP4_CONFIG_FORM_TITLE), MenuString, NULL);
|
||||
HiiSetString (Instance->RegisteredHandle, STRING_TOKEN (STR_IP4_CONFIG_FORM_HELP), MenuString, NULL);
|
||||
|
||||
UnicodeSPrint (PortString, 128, L"MAC:%s", MacString);
|
||||
HiiSetString (Instance->RegisteredHandle, STRING_TOKEN (STR_IP4_DEVICE_FORM_TITLE), PortString, NULL);
|
||||
HiiSetString (Instance->RegisteredHandle, STRING_TOKEN (STR_IP4_DEVICE_FORM_HELP), PortString, NULL);
|
||||
FreePool (MacString);
|
||||
}
|
||||
|
||||
|
|
|
@ -541,7 +541,7 @@ InstallVlanConfigForm (
|
|||
StrCat (Str, L")");
|
||||
HiiSetString (
|
||||
HiiHandle,
|
||||
STRING_TOKEN (STR_VLAN_FORM_SET_TITLE),
|
||||
STRING_TOKEN (STR_VLAN_FORM_SET_TITLE_HELP),
|
||||
Str,
|
||||
NULL
|
||||
);
|
||||
|
@ -551,7 +551,7 @@ InstallVlanConfigForm (
|
|||
//
|
||||
HiiSetString (
|
||||
HiiHandle,
|
||||
STRING_TOKEN (STR_VLAN_FORM_TITLE),
|
||||
STRING_TOKEN (STR_VLAN_FORM_HELP),
|
||||
Str,
|
||||
NULL
|
||||
);
|
||||
|
|
Binary file not shown.
Loading…
Reference in New Issue