Browse Source

drivers-edac: turn on edac device error logging

ENABLE the 'logging' of CE and UE events for the EDAC_DEVICE class of error
harvester in EDAC

Cc: Alan Cox <alan@lxorguk.ukuu.org.uk
Signed-off-by: Doug Thompson <dougthompson@xmission.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Doug Thompson 17 years ago
parent
commit
56e61a9c5f
1 changed files with 4 additions and 0 deletions
  1. 4 0
      drivers/edac/edac_device.c

+ 4 - 0
drivers/edac/edac_device.c

@@ -155,6 +155,10 @@ struct edac_device_ctl_info *edac_device_alloc_ctl_info(
 	dev_ctl->instances = dev_inst;
 	dev_ctl->instances = dev_inst;
 	dev_ctl->pvt_info = pvt;
 	dev_ctl->pvt_info = pvt;
 
 
+	/* Default logging of CEs and UEs */
+	dev_ctl->log_ce = 1;
+	dev_ctl->log_ue = 1;
+
 	/* Name of this edac device */
 	/* Name of this edac device */
 	snprintf(dev_ctl->name,sizeof(dev_ctl->name),"%s",edac_device_name);
 	snprintf(dev_ctl->name,sizeof(dev_ctl->name),"%s",edac_device_name);