Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=d391a7b8147d12b0e5141fb65829856fb0c289dc
Commit:     d391a7b8147d12b0e5141fb65829856fb0c289dc
Parent:     42a8e397a80c277afb2aeb22232bc70114035bb1
Author:     Douglas Thompson <[EMAIL PROTECTED]>
AuthorDate: Thu Jul 19 01:50:11 2007 -0700
Committer:  Linus Torvalds <[EMAIL PROTECTED]>
CommitDate: Thu Jul 19 10:04:55 2007 -0700

    drivers/edac: device output clenaup
    
    The error handling output strings needed to be refactored for better
    displaying of the error informaton.
    
    Also needed to added offset_value for output as well
    
    Signed-off-by: Douglas Thompson <[EMAIL PROTECTED]>
    Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
    Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>
---
 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 26807af..dfdfc4b 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(
                        attrib_p = &dev_attrib[block * nr_attribs];
                        blk->attribs = attrib_p;
                        snprintf(blk->name, sizeof(blk->name),
-                                "%s%d", edac_block_name, block + 1);
+                                "%s%d", edac_block_name, block+offset_value);
                        blk->name[sizeof(blk->name) - 1] = '\0';
 
                        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,
 
        if (edac_device_get_log_ce(edac_dev))
                edac_device_printk(edac_dev, KERN_WARNING,
-                                  "CE ctl: %s, instance: %s, block: %s: %s\n",
+                                  "CE: %s instance: %s block: %s '%s'\n",
                                   edac_dev->ctl_name, instance->name,
                                   block ? block->name : "N/A", msg);
 }
@@ -626,12 +626,12 @@ void edac_device_handle_ue(struct edac_device_ctl_info 
*edac_dev,
 
        if (edac_device_get_log_ue(edac_dev))
                edac_device_printk(edac_dev, KERN_EMERG,
-                                  "UE ctl: %s, instance: %s, block: %s: %s\n",
+                                  "UE: %s instance: %s block: %s '%s'\n",
                                   edac_dev->ctl_name, instance->name,
                                   block ? block->name : "N/A", msg);
 
        if (edac_device_get_panic_on_ue(edac_dev))
-               panic("EDAC %s: UE instance: %s, block %s: %s\n",
+               panic("EDAC %s: UE instance: %s block %s '%s'\n",
                      edac_dev->ctl_name, instance->name,
                      block ? block->name : "N/A", msg);
 }
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to