Browse Source

[efi] Include product short name in EFI SNP device names

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 12 years ago
parent
commit
717279a294
1 changed files with 5 additions and 3 deletions
  1. 5
    3
      src/interface/efi/efi_snp.c

+ 5
- 3
src/interface/efi/efi_snp.c View File

33
 #include <ipxe/efi/efi_driver.h>
33
 #include <ipxe/efi/efi_driver.h>
34
 #include <ipxe/efi/efi_strings.h>
34
 #include <ipxe/efi/efi_strings.h>
35
 #include <ipxe/efi/efi_snp.h>
35
 #include <ipxe/efi/efi_snp.h>
36
+#include <config/general.h>
36
 
37
 
37
 /** EFI simple network protocol GUID */
38
 /** EFI simple network protocol GUID */
38
 static EFI_GUID efi_simple_network_protocol_guid
39
 static EFI_GUID efi_simple_network_protocol_guid
849
 	/* Populate the component name structure */
850
 	/* Populate the component name structure */
850
 	efi_snprintf ( snpdev->driver_name,
851
 	efi_snprintf ( snpdev->driver_name,
851
 		       ( sizeof ( snpdev->driver_name ) /
852
 		       ( sizeof ( snpdev->driver_name ) /
852
-			 sizeof ( snpdev->driver_name[0] ) ), "%s",
853
-		       netdev->dev->driver_name );
853
+			 sizeof ( snpdev->driver_name[0] ) ),
854
+		       PRODUCT_SHORT_NAME " %s", netdev->dev->driver_name );
854
 	efi_snprintf ( snpdev->controller_name,
855
 	efi_snprintf ( snpdev->controller_name,
855
 		       ( sizeof ( snpdev->controller_name ) /
856
 		       ( sizeof ( snpdev->controller_name ) /
856
-			 sizeof ( snpdev->controller_name[0] ) ), "%s (%s)",
857
+			 sizeof ( snpdev->controller_name[0] ) ),
858
+		       PRODUCT_SHORT_NAME " %s (%s)",
857
 		       netdev->name, netdev_addr ( netdev ) );
859
 		       netdev->name, netdev_addr ( netdev ) );
858
 	snpdev->name2.GetDriverName = efi_snp_get_driver_name;
860
 	snpdev->name2.GetDriverName = efi_snp_get_driver_name;
859
 	snpdev->name2.GetControllerName = efi_snp_get_controller_name;
861
 	snpdev->name2.GetControllerName = efi_snp_get_controller_name;

Loading…
Cancel
Save