diff options
Diffstat (limited to 'drivers/edac/edac_device.c')
-rw-r--r-- | drivers/edac/edac_device.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/edac/edac_device.c b/drivers/edac/edac_device.c index 26807af2c5e7..dfdfc4bbeba8 100644 --- a/drivers/edac/edac_device.c +++ b/drivers/edac/edac_device.c | |||
@@ -158,7 +158,7 @@ struct edac_device_ctl_info *edac_device_alloc_ctl_info( | |||
158 | attrib_p = &dev_attrib[block * nr_attribs]; | 158 | attrib_p = &dev_attrib[block * nr_attribs]; |
159 | blk->attribs = attrib_p; | 159 | blk->attribs = attrib_p; |
160 | snprintf(blk->name, sizeof(blk->name), | 160 | snprintf(blk->name, sizeof(blk->name), |
161 | "%s%d", edac_block_name, block + 1); | 161 | "%s%d", edac_block_name, block+offset_value); |
162 | blk->name[sizeof(blk->name) - 1] = '\0'; | 162 | blk->name[sizeof(blk->name) - 1] = '\0'; |
163 | 163 | ||
164 | debugf1("%s() instance=%d block=%d name=%s\n", | 164 | debugf1("%s() instance=%d block=%d name=%s\n", |
@@ -580,7 +580,7 @@ void edac_device_handle_ce(struct edac_device_ctl_info *edac_dev, | |||
580 | 580 | ||
581 | if (edac_device_get_log_ce(edac_dev)) | 581 | if (edac_device_get_log_ce(edac_dev)) |
582 | edac_device_printk(edac_dev, KERN_WARNING, | 582 | edac_device_printk(edac_dev, KERN_WARNING, |
583 | "CE ctl: %s, instance: %s, block: %s: %s\n", | 583 | "CE: %s instance: %s block: %s '%s'\n", |
584 | edac_dev->ctl_name, instance->name, | 584 | edac_dev->ctl_name, instance->name, |
585 | block ? block->name : "N/A", msg); | 585 | block ? block->name : "N/A", msg); |
586 | } | 586 | } |
@@ -626,12 +626,12 @@ void edac_device_handle_ue(struct edac_device_ctl_info *edac_dev, | |||
626 | 626 | ||
627 | if (edac_device_get_log_ue(edac_dev)) | 627 | if (edac_device_get_log_ue(edac_dev)) |
628 | edac_device_printk(edac_dev, KERN_EMERG, | 628 | edac_device_printk(edac_dev, KERN_EMERG, |
629 | "UE ctl: %s, instance: %s, block: %s: %s\n", | 629 | "UE: %s instance: %s block: %s '%s'\n", |
630 | edac_dev->ctl_name, instance->name, | 630 | edac_dev->ctl_name, instance->name, |
631 | block ? block->name : "N/A", msg); | 631 | block ? block->name : "N/A", msg); |
632 | 632 | ||
633 | if (edac_device_get_panic_on_ue(edac_dev)) | 633 | if (edac_device_get_panic_on_ue(edac_dev)) |
634 | panic("EDAC %s: UE instance: %s, block %s: %s\n", | 634 | panic("EDAC %s: UE instance: %s block %s '%s'\n", |
635 | edac_dev->ctl_name, instance->name, | 635 | edac_dev->ctl_name, instance->name, |
636 | block ? block->name : "N/A", msg); | 636 | block ? block->name : "N/A", msg); |
637 | } | 637 | } |