diff options
Diffstat (limited to 'include/pci.h')
-rw-r--r-- | include/pci.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/pci.h b/include/pci.h index cb33063..f837e0f 100644 --- a/include/pci.h +++ b/include/pci.h @@ -14,22 +14,22 @@ prlog(PR_TRACE, "PHB#%04x:%02x:%02x.%x " fmt, \ (_p)->opal_id, \ PCI_BUS_NUM(_bdfn), \ - ((_bdfn) >> 3) & 0x1f, (_bdfn) & 0x7, ## a) + PCI_DEV(_bdfn), (_bdfn) & 0x7, ## a) #define PCIDBG(_p, _bdfn, fmt, a...) \ prlog(PR_DEBUG, "PHB#%04x:%02x:%02x.%x " fmt, \ (_p)->opal_id, \ PCI_BUS_NUM(_bdfn), \ - ((_bdfn) >> 3) & 0x1f, (_bdfn) & 0x7, ## a) + PCI_DEV(_bdfn), (_bdfn) & 0x7, ## a) #define PCINOTICE(_p, _bdfn, fmt, a...) \ prlog(PR_NOTICE, "PHB#%04x:%02x:%02x.%x " fmt, \ (_p)->opal_id, \ PCI_BUS_NUM(_bdfn), \ - ((_bdfn) >> 3) & 0x1f, (_bdfn) & 0x7, ## a) + PCI_DEV(_bdfn), (_bdfn) & 0x7, ## a) #define PCIERR(_p, _bdfn, fmt, a...) \ prlog(PR_ERR, "PHB#%04x:%02x:%02x.%x " fmt, \ (_p)->opal_id, \ PCI_BUS_NUM(_bdfn), \ - ((_bdfn) >> 3) & 0x1f, (_bdfn) & 0x7, ## a) + PCI_DEV(_bdfn), (_bdfn) & 0x7, ## a) struct pci_device; struct pci_cfg_reg_filter; |