x86: Provide an option to enable legacy USB
[akaros.git] / kern / arch / x86 / pci.c
index 0871507..c9caebe 100644 (file)
@@ -204,6 +204,9 @@ void pci_init(void)
                                pcidev->bus = i;
                                pcidev->dev = j;
                                pcidev->func = k;
+                               snprintf(pcidev->name, sizeof(pcidev->name),
+                                        "%02x:%02x.%x", pcidev->bus,
+                                        pcidev->dev, pcidev->func);
                                pcidev->dev_id = dev_id;
                                pcidev->ven_id = ven_id;
                                /* Get the Class/subclass */