]> git.proxmox.com Git - mirror_edk2.git/commitdiff
MdeModulePkg: Update the Ethernet interface name.
authorZhang Lubo <lubo.zhang@intel.com>
Thu, 23 Feb 2017 02:37:03 +0000 (10:37 +0800)
committerJiaxin Wu <jiaxin.wu@intel.com>
Thu, 23 Feb 2017 08:51:15 +0000 (16:51 +0800)
Update the interface name from ethA ethB to
eth10, eth11 etc if port number more than 9.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Zhang Lubo <lubo.zhang@intel.com>
Cc: Sriram Subramanian <sriram-s@hpe.com>
Cc: Ye Ting <ting.ye@intel.com>
Cc: Fu Siyuan <siyuan.fu@intel.com>
Cc: Wu Jiaxin <jiaxin.wu@intel.com>
Reviewed-by: Sriram Subramanian <sriram-s@hpe.com>
Reviewed-by: Wu Jiaxin <jiaxin.wu@intel.com>
Reviewed-by: Fu Siyuan <siyuan.fu@intel.com>
MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Config2Impl.c

index a6a3da8fe8a0821e8f54ddae6a1593d037f3bd3b..504f2477da7cc94e400616b58c99ee157419f29b 100644 (file)
@@ -1495,7 +1495,7 @@ Ip4Config2InitIfInfo (
   UnicodeSPrint (\r
     IfInfo->Name,\r
     EFI_IP4_CONFIG2_INTERFACE_INFO_NAME_SIZE,\r
-    L"eth%x",\r
+    L"eth%d",\r
     IpSb->Ip4Config2Instance.IfIndex\r
   );\r
 \r