diff options
author | Reza Arbab <arbab@linux.ibm.com> | 2018-08-01 15:01:14 -0500 |
---|---|---|
committer | Stewart Smith <stewart@linux.ibm.com> | 2018-08-06 02:57:42 -0500 |
commit | 167fcb20aa9752e19c4f381cdec7baa63e675a38 (patch) | |
tree | 0a4b800e5981047526ba20073c7e797caf4df890 /core | |
parent | 8a8cc857fa3f4a635cd9ef4acbd5abdfbe7872bd (diff) | |
download | skiboot-167fcb20aa9752e19c4f381cdec7baa63e675a38.zip skiboot-167fcb20aa9752e19c4f381cdec7baa63e675a38.tar.gz skiboot-167fcb20aa9752e19c4f381cdec7baa63e675a38.tar.bz2 |
pci: Move logging macros to pci.h
Move the PCI{TRACE,DBG,NOTICE,ERR} logging macros from pci.c to pci.h so
they can be used in other files.
Signed-off-by: Reza Arbab <arbab@linux.ibm.com>
Reviewed-by: Alistair Popple <alistair@popple.id.au>
Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
Diffstat (limited to 'core')
-rw-r--r-- | core/pci.c | 21 |
1 files changed, 0 insertions, 21 deletions
@@ -29,27 +29,6 @@ static struct phb *phbs[MAX_PHB_ID]; int last_phb_id = 0; -#define PCITRACE(_p, _bdfn, fmt, a...) \ - prlog(PR_TRACE, "PHB#%04x:%02x:%02x.%x " fmt, \ - (_p)->opal_id, \ - ((_bdfn) >> 8) & 0xff, \ - ((_bdfn) >> 3) & 0x1f, (_bdfn) & 0x7, ## a) -#define PCIDBG(_p, _bdfn, fmt, a...) \ - prlog(PR_DEBUG, "PHB#%04x:%02x:%02x.%x " fmt, \ - (_p)->opal_id, \ - ((_bdfn) >> 8) & 0xff, \ - ((_bdfn) >> 3) & 0x1f, (_bdfn) & 0x7, ## a) -#define PCINOTICE(_p, _bdfn, fmt, a...) \ - prlog(PR_NOTICE, "PHB#%04x:%02x:%02x.%x " fmt, \ - (_p)->opal_id, \ - ((_bdfn) >> 8) & 0xff, \ - ((_bdfn) >> 3) & 0x1f, (_bdfn) & 0x7, ## a) -#define PCIERR(_p, _bdfn, fmt, a...) \ - prlog(PR_ERR, "PHB#%04x:%02x:%02x.%x " fmt, \ - (_p)->opal_id, \ - ((_bdfn) >> 8) & 0xff, \ - ((_bdfn) >> 3) & 0x1f, (_bdfn) & 0x7, ## a) - /* * Generic PCI utilities */ |