mirror of
https://github.com/ipxe/ipxe
synced 2026-02-02 19:57:34 +03:00
[efi] Provide a meaningful EFI SNP device name
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -65,7 +65,7 @@ struct efi_snp_device {
|
|||||||
/** Driver name */
|
/** Driver name */
|
||||||
wchar_t driver_name[16];
|
wchar_t driver_name[16];
|
||||||
/** Controller name */
|
/** Controller name */
|
||||||
wchar_t controller_name[32];
|
wchar_t controller_name[64];
|
||||||
/** The device path
|
/** The device path
|
||||||
*
|
*
|
||||||
* This field is variable in size and must appear at the end
|
* This field is variable in size and must appear at the end
|
||||||
|
|||||||
@@ -992,7 +992,8 @@ static int efi_snp_probe ( struct net_device *netdev ) {
|
|||||||
efi_snprintf ( snpdev->controller_name,
|
efi_snprintf ( snpdev->controller_name,
|
||||||
( sizeof ( snpdev->controller_name ) /
|
( sizeof ( snpdev->controller_name ) /
|
||||||
sizeof ( snpdev->controller_name[0] ) ),
|
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 ) );
|
netdev_addr ( netdev ) );
|
||||||
snpdev->name2.GetDriverName = efi_snp_get_driver_name;
|
snpdev->name2.GetDriverName = efi_snp_get_driver_name;
|
||||||
snpdev->name2.GetControllerName = efi_snp_get_controller_name;
|
snpdev->name2.GetControllerName = efi_snp_get_controller_name;
|
||||||
|
|||||||
Reference in New Issue
Block a user