summaryrefslogtreecommitdiff
path: root/MdeModulePkg
diff options
context:
space:
mode:
authorgikidy <gikidy@6f19259b-4bc3-4df7-8a09-765794883524>2009-06-25 06:18:32 +0000
committergikidy <gikidy@6f19259b-4bc3-4df7-8a09-765794883524>2009-06-25 06:18:32 +0000
commita1ed88afe6b82e97ca17edbc9f197530e294451d (patch)
tree7a635d579eff8d0bba9efabf21566eef4d748cce /MdeModulePkg
parent8d3b5aff68cef02a1fdb650d009b9aa6b83d6040 (diff)
downloadedk2-platforms-a1ed88afe6b82e97ca17edbc9f197530e294451d.tar.xz
Extend the max number of interface to 128 and correct the display of eth name.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8656 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg')
-rw-r--r--MdeModulePkg/Universal/Network/Ip4ConfigDxe/Ip4ConfigDriver.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/MdeModulePkg/Universal/Network/Ip4ConfigDxe/Ip4ConfigDriver.c b/MdeModulePkg/Universal/Network/Ip4ConfigDxe/Ip4ConfigDriver.c
index 05bdb5e8ca..503c7cb814 100644
--- a/MdeModulePkg/Universal/Network/Ip4ConfigDxe/Ip4ConfigDriver.c
+++ b/MdeModulePkg/Universal/Network/Ip4ConfigDxe/Ip4ConfigDriver.c
@@ -257,17 +257,9 @@ Ip4ConfigDriverBindingStart (
Instance->NicIndex = Index;
if (Instance->NicAddr.Type == NET_IFTYPE_ETHERNET) {
- Instance->NicName[0] = 'e';
- Instance->NicName[1] = 't';
- Instance->NicName[2] = 'h';
- Instance->NicName[3] = (UINT16) ('0' + Index);
- Instance->NicName[4] = 0;
+ UnicodeSPrint (Instance->NicName, (UINTN) IP4_NIC_NAME_LENGTH, L"eth%d", Index);
} else {
- Instance->NicName[0] = 'u';
- Instance->NicName[1] = 'n';
- Instance->NicName[2] = 'k';
- Instance->NicName[3] = (UINT16) ('0' + Index);
- Instance->NicName[4] = 0;
+ UnicodeSPrint (Instance->NicName, (UINTN) IP4_NIC_NAME_LENGTH, L"unk%d", Index);
}
break;