Pārlūkot izejas kodu

[efi] Provide a meaningful EFI SNP device name

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 10 gadus atpakaļ
vecāks
revīzija
f2c116ff7d
2 mainītis faili ar 3 papildinājumiem un 2 dzēšanām
  1. 1
    1
      src/include/ipxe/efi/efi_snp.h
  2. 2
    1
      src/interface/efi/efi_snp.c

+ 1
- 1
src/include/ipxe/efi/efi_snp.h Parādīt failu

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

+ 2
- 1
src/interface/efi/efi_snp.c Parādīt failu

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

Notiek ielāde…
Atcelt
Saglabāt