]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
node_device: udev: Fix PCI product/vendor swappage
authorCole Robinson <crobinso@redhat.com>
Tue, 11 May 2010 18:44:34 +0000 (14:44 -0400)
committerCole Robinson <crobinso@redhat.com>
Tue, 11 May 2010 20:55:56 +0000 (16:55 -0400)
Product and vendor values were swapped in the XML, which made virt-manager
PCI device listing kinda useless.

src/node_device/node_device_udev.c

index bcfe991fb796d7382e1110ec1a7a4f4c09e93ad4..4a9d65f428ba4d0688400c51e824e7b70fb913fc 100644 (file)
@@ -382,8 +382,8 @@ static int udevTranslatePCIIds(unsigned int vendor,
 
     /* pci_get_strings returns void */
     pci_get_strings(&m,
-                    &vendor_name,
                     &device_name,
+                    &vendor_name,
                     NULL,
                     NULL);