]> xenbits.xensource.com Git - libvirt.git/commit
virpcimock: Introduce and use pci_driver_get_path()
authorMichal Privoznik <mprivozn@redhat.com>
Tue, 13 Aug 2019 14:11:17 +0000 (16:11 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Sat, 17 Aug 2019 10:08:20 +0000 (12:08 +0200)
commitaf3ddc1369124d308785a6bec131cd831cd03960
treec6bd035f0970c957cf049fd7cf1f4278891b85c1
parent7f7bd6016e6566fa958c499ec0834d966ddef5e6
virpcimock: Introduce and use pci_driver_get_path()

Have just one function to generate path to a PCI driver so that
when we change it in near future there's only few of the places
we need to fix.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Tested-by: Daniel Henrique Barboza <danielhb413@gmail.com>
Reviewed-by: Daniel Henrique Barboza <danielhb413@gmail.com>
tests/virpcimock.c