From ef0376483c88a628617d64dfd648d652dafd3f6c Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Wed, 24 Nov 2010 16:59:46 +0000 Subject: [pci] Standardise debug message format Signed-off-by: Michael Brown --- src/include/ipxe/pci.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/include/ipxe') diff --git a/src/include/ipxe/pci.h b/src/include/ipxe/pci.h index fb0880c2f..90e268985 100644 --- a/src/include/ipxe/pci.h +++ b/src/include/ipxe/pci.h @@ -374,6 +374,13 @@ struct pci_driver { #define PCI_ROM( _vendor, _device, _name, _description, _data ) \ PCI_ID( _vendor, _device, _name, _description, _data ) +/** PCI device debug message format */ +#define PCI_FMT "PCI %02x:%02x.%x" + +/** PCI device debug message arguments */ +#define PCI_ARGS( pci ) \ + (pci)->bus, PCI_SLOT ( (pci)->devfn ), PCI_FUNC ( (pci)->devfn ) + extern void adjust_pci_device ( struct pci_device *pci ); extern unsigned long pci_bar_start ( struct pci_device *pci, unsigned int reg ); -- cgit v1.2.3-55-g7522