aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/edac/i7core_edac.c
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2009-09-24 08:58:26 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2010-05-10 10:45:00 -0400
commit4af91889e02c9933823ca8c62fc6f05dfd15f3bd (patch)
tree625f4c9ebe3d18bd7ccdaadb806cbc2d1fecad81 /drivers/edac/i7core_edac.c
parent4253868034221db6e42dbbb61e0305fe1757f8da (diff)
i7core_edac: Avoid printing a warning when debug is disabled
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/edac/i7core_edac.c')
-rw-r--r--drivers/edac/i7core_edac.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/edac/i7core_edac.c b/drivers/edac/i7core_edac.c
index 2e4b0abf9d4..0478cc85e92 100644
--- a/drivers/edac/i7core_edac.c
+++ b/drivers/edac/i7core_edac.c
@@ -471,7 +471,6 @@ static int get_dimm_config(struct mem_ctl_info *mci, int *csrow)
471 struct csrow_info *csr; 471 struct csrow_info *csr;
472 struct pci_dev *pdev; 472 struct pci_dev *pdev;
473 int i, j; 473 int i, j;
474 u8 socket = pvt->i7core_dev->socket;
475 unsigned long last_page = 0; 474 unsigned long last_page = 0;
476 enum edac_type mode; 475 enum edac_type mode;
477 enum mem_type mtype; 476 enum mem_type mtype;
@@ -488,7 +487,7 @@ static int get_dimm_config(struct mem_ctl_info *mci, int *csrow)
488 pci_read_config_dword(pdev, MC_CHANNEL_MAPPER, &pvt->info.ch_map); 487 pci_read_config_dword(pdev, MC_CHANNEL_MAPPER, &pvt->info.ch_map);
489 488
490 debugf0("QPI %d control=0x%08x status=0x%08x dod=0x%08x map=0x%08x\n", 489 debugf0("QPI %d control=0x%08x status=0x%08x dod=0x%08x map=0x%08x\n",
491 socket, pvt->info.mc_control, pvt->info.mc_status, 490 pvt->i7core_dev->socket, pvt->info.mc_control, pvt->info.mc_status,
492 pvt->info.max_dod, pvt->info.ch_map); 491 pvt->info.max_dod, pvt->info.ch_map);
493 492
494 if (ECC_ENABLED(pvt)) { 493 if (ECC_ENABLED(pvt)) {