david/ipxe
david
/
ipxe
Archived
1
0
Fork 0

[efi] Provide a meaningful EFI SNP device name

Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Michael Brown 2014-06-25 14:45:08 +01:00
parent 44338bfd22
commit f2c116ff7d
2 changed files with 3 additions and 2 deletions

View File

@ -65,7 +65,7 @@ struct efi_snp_device {
/** Driver name */
wchar_t driver_name[16];
/** Controller name */
wchar_t controller_name[32];
wchar_t controller_name[64];
/** The device path
*
* This field is variable in size and must appear at the end

View File

@ -992,7 +992,8 @@ static int efi_snp_probe ( struct net_device *netdev ) {
efi_snprintf ( snpdev->controller_name,
( sizeof ( snpdev->controller_name ) /
sizeof ( snpdev->controller_name[0] ) ),
"%s %s (%s)", product_short_name, netdev->name,
"%s %s (%s, %s)", product_short_name,
netdev->dev->driver_name, netdev->dev->name,
netdev_addr ( netdev ) );
snpdev->name2.GetDriverName = efi_snp_get_driver_name;
snpdev->name2.GetControllerName = efi_snp_get_controller_name;