[libvirt] [PATCH] node_device: udev: Fix PCI product/vendor swappage

Eric Blake eblake at redhat.com
Tue May 11 19:22:07 UTC 2010


On 05/11/2010 12:48 PM, Cole Robinson wrote:
> Product and vendor values were swapped in the XML, which made virt-manager
> PCI device listing kinda useless.
> 
> Signed-off-by: Cole Robinson <crobinso at redhat.com>
> ---
>  src/node_device/node_device_udev.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/src/node_device/node_device_udev.c b/src/node_device/node_device_udev.c
> index bcfe991..4a9d65f 100644
> --- a/src/node_device/node_device_udev.c
> +++ b/src/node_device/node_device_udev.c
> @@ -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,

ACK, after verifying /usr/include/pciaccess.h.

-- 
Eric Blake   eblake at redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 619 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20100511/2e05d286/attachment-0001.sig>


More information about the libvir-list mailing list