Give UNDI device a more meaningful name.
authorMichael Brown <mcb30@etherboot.org>
Wed, 10 Jan 2007 05:52:04 +0000 (05:52 +0000)
committerMichael Brown <mcb30@etherboot.org>
Wed, 10 Jan 2007 05:52:04 +0000 (05:52 +0000)
src/arch/i386/drivers/net/undi.c

index fee2095..492e8fa 100644 (file)
@@ -98,7 +98,7 @@ static int undipci_probe ( struct pci_device *pci,
 
        /* Add to device hierarchy */
        snprintf ( undi->dev.name, sizeof ( undi->dev.name ),
-                  "UNDI%04x:%04x", undi->entry.segment, undi->entry.offset );
+                  "UNDI-%s", pci->dev.name );
        undi->dev.parent = &pci->dev;
        INIT_LIST_HEAD ( &undi->dev.children );
        list_add ( &undi->dev.siblings, &pci->dev.children );