]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[efi] Include product short name in EFI SNP device names
authorMichael Brown <mcb30@ipxe.org>
Wed, 21 Nov 2012 03:36:07 +0000 (03:36 +0000)
committerMichael Brown <mcb30@ipxe.org>
Wed, 21 Nov 2012 03:43:43 +0000 (03:43 +0000)
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/interface/efi/efi_snp.c

index c48572e86fa5c9a7242e224d8f458d3b4eab39a5..200275966d1c4059bb0959b8a3ad4b2cec3c3810 100644 (file)
@@ -33,6 +33,7 @@ FILE_LICENCE ( GPL2_OR_LATER );
 #include <ipxe/efi/efi_driver.h>
 #include <ipxe/efi/efi_strings.h>
 #include <ipxe/efi/efi_snp.h>
+#include <config/general.h>
 
 /** EFI simple network protocol GUID */
 static EFI_GUID efi_simple_network_protocol_guid
@@ -849,11 +850,12 @@ static int efi_snp_probe ( struct net_device *netdev ) {
        /* Populate the component name structure */
        efi_snprintf ( snpdev->driver_name,
                       ( sizeof ( snpdev->driver_name ) /
-                        sizeof ( snpdev->driver_name[0] ) ), "%s",
-                      netdev->dev->driver_name );
+                        sizeof ( snpdev->driver_name[0] ) ),
+                      PRODUCT_SHORT_NAME " %s", netdev->dev->driver_name );
        efi_snprintf ( snpdev->controller_name,
                       ( sizeof ( snpdev->controller_name ) /
-                        sizeof ( snpdev->controller_name[0] ) ), "%s (%s)",
+                        sizeof ( snpdev->controller_name[0] ) ),
+                      PRODUCT_SHORT_NAME " %s (%s)",
                       netdev->name, netdev_addr ( netdev ) );
        snpdev->name2.GetDriverName = efi_snp_get_driver_name;
        snpdev->name2.GetControllerName = efi_snp_get_controller_name;