mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-21 21:25:25 +00:00
vircpi: Decrease scope of VIR_PCI_DEVICE_ADDRESS_FMT macro
The VIR_PCI_DEVICE_ADDRESS_FMT macro is used only in virpci.c and nowhere else. It's not necessary to expose it in the header file. Signed-off-by: Michal Privoznik <mprivozn@redhat.com> Reviewed-by: Jonathon Jongsma <jjongsma@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
cc9f439be9
commit
7ec4e6e3b5
@ -42,6 +42,7 @@ VIR_LOG_INIT("util.pci");
|
||||
|
||||
#define PCI_SYSFS "/sys/bus/pci/"
|
||||
#define PCI_ID_LEN 10 /* "XXXX XXXX" */
|
||||
#define VIR_PCI_DEVICE_ADDRESS_FMT "%04x:%02x:%02x.%d"
|
||||
|
||||
VIR_ENUM_IMPL(virPCIELinkSpeed,
|
||||
VIR_PCIE_LINK_SPEED_LAST,
|
||||
|
@ -50,8 +50,6 @@ struct _virZPCIDeviceAddress {
|
||||
/* Don't forget to update virPCIDeviceAddressCopy if needed. */
|
||||
};
|
||||
|
||||
#define VIR_PCI_DEVICE_ADDRESS_FMT "%04x:%02x:%02x.%d"
|
||||
|
||||
struct _virPCIDeviceAddress {
|
||||
unsigned int domain;
|
||||
unsigned int bus;
|
||||
|
Loading…
Reference in New Issue
Block a user