aboutsummaryrefslogtreecommitdiff
path: root/platforms
diff options
context:
space:
mode:
authorStewart Smith <stewart@linux.vnet.ibm.com>2014-10-13 15:15:53 +1100
committerStewart Smith <stewart@linux.vnet.ibm.com>2014-10-15 14:23:24 +1100
commit24a73fcc0c01d74c92474732c4ff998219d0974f (patch)
treead08483d44b6bb2289c7d8c225b50872d53c0369 /platforms
parent71f6ff60d15939d2458b061d06df2a9f0d995e7d (diff)
downloadskiboot-24a73fcc0c01d74c92474732c4ff998219d0974f.zip
skiboot-24a73fcc0c01d74c92474732c4ff998219d0974f.tar.gz
skiboot-24a73fcc0c01d74c92474732c4ff998219d0974f.tar.bz2
Firenze platform: quieten logging of sending PCI info to FSP
We don't need the debug level printouts by default, set to PR_DEBUG Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'platforms')
-rw-r--r--platforms/ibm-fsp/firenze.c22
1 files changed, 9 insertions, 13 deletions
diff --git a/platforms/ibm-fsp/firenze.c b/platforms/ibm-fsp/firenze.c
index c0a13c0..c773159 100644
--- a/platforms/ibm-fsp/firenze.c
+++ b/platforms/ibm-fsp/firenze.c
@@ -25,9 +25,6 @@
#include "ibm-fsp.h"
#include "lxvpd.h"
-/* Enable that to dump the PCIe inventory table before sending to FSP */
-#define DEBUG_INVENTORY
-
/* Structure used to send PCIe card info to FSP */
struct fsp_pcie_entry {
uint32_t hw_proc_id;
@@ -64,25 +61,24 @@ static void firenze_send_pci_inventory(void)
if (!fsp_pcie_inv)
return;
- printf("PLAT: Sending PCI inventory to FSP, table has %d entries\n",
- fsp_pcie_inv->num_entries);
+ prlog(PR_DEBUG, "PLAT: Sending PCI inventory to FSP, table has"
+ " %d entries\n",
+ fsp_pcie_inv->num_entries);
-#ifdef DEBUG_INVENTORY
{
unsigned int i;
- printf("HWP SLT VDID DVID SVID SDID\n");
- printf("---------------------------\n");
+ prlog(PR_DEBUG, "HWP SLT VDID DVID SVID SDID\n");
+ prlog(PR_DEBUG, "---------------------------\n");
for (i = 0; i < fsp_pcie_inv->num_entries; i++) {
struct fsp_pcie_entry *e = &fsp_pcie_inv->entries[i];
- printf("%03d %03d %04x %04x %04x %04x\n",
- e->hw_proc_id, e->slot_idx,
- e->vendor_id, e->device_id,
- e->subsys_vendor_id, e->subsys_device_id);
+ prlog(PR_DEBUG, "%03d %03d %04x %04x %04x %04x\n",
+ e->hw_proc_id, e->slot_idx,
+ e->vendor_id, e->device_id,
+ e->subsys_vendor_id, e->subsys_device_id);
}
}
-#endif
/*
* Get the location of the table in a form we can send