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