Blame SOURCES/0001-ras-mc-ctl-Improve-error-summary-to-show-label-and-m.patch

97e186
From 5e8fb95e2f6dd3f427e0ae5d7d066aeb6d61fd0f Mon Sep 17 00:00:00 2001
97e186
From: Mauro Carvalho Chehab <mchehab@redhat.com>
97e186
Date: Wed, 29 May 2013 21:53:58 -0300
97e186
Subject: [PATCH 01/32] ras-mc-ctl: Improve error summary to show label and mc
97e186
97e186
Both information are useful for the users, even on summary.
97e186
97e186
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
97e186
---
97e186
 util/ras-mc-ctl.in |    6 +++---
97e186
 1 files changed, 3 insertions(+), 3 deletions(-)
97e186
97e186
diff --git a/util/ras-mc-ctl.in b/util/ras-mc-ctl.in
97e186
index 32c4edb..5b1ca4d 100755
97e186
--- a/util/ras-mc-ctl.in
97e186
+++ b/util/ras-mc-ctl.in
97e186
@@ -827,15 +827,15 @@ sub summary
97e186
 
97e186
     my $dbh = DBI->connect("dbi:SQLite:dbname=$dbname", "", "", {});
97e186
 
97e186
-    my $query = "select top_layer,middle_layer,lower_layer, count(*) from mc_event group by top_layer,middle_layer,lower_layer";
97e186
+    my $query = "select label, mc, top_layer,middle_layer,lower_layer, count(*) from mc_event group by label,mc,top_layer,middle_layer,lower_layer";
97e186
     my $query_handle = $dbh->prepare($query);
97e186
     $query_handle->execute();
97e186
 
97e186
-    $query_handle->bind_columns(\my($top, $mid, $low, $count));
97e186
+    $query_handle->bind_columns(\my($label, $mc, $top, $mid, $low, $count));
97e186
 
97e186
     print "Memory controller events summary:\n";
97e186
     while($query_handle->fetch()) {
97e186
-        print "location: $top:$mid:$low errors: $count\n";
97e186
+        print "DIMM Label(s): '$label' location: $mc:$top:$mid:$low errors: $count\n";
97e186
     }
97e186
 
97e186
     $query_handle->finish;
97e186
-- 
97e186
1.7.1
97e186