diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2011-09-16 12:37:29 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2011-11-01 08:01:52 -0400 |
commit | 767ba4a52a6de7ea2875a8af79bf11452a2a0c44 (patch) | |
tree | 1688df531c2b5ccec938f3b60b6276440a017bb6 /drivers/edac | |
parent | 4fad8098bc3cc9dfe711b10b07df821ea30e6879 (diff) |
i7core_edac: Initialize memory name with cpu, channel, bank
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/edac')
-rw-r--r-- | drivers/edac/i7core_edac.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/edac/i7core_edac.c b/drivers/edac/i7core_edac.c index 51d251c32901..70ad8923f1d7 100644 --- a/drivers/edac/i7core_edac.c +++ b/drivers/edac/i7core_edac.c | |||
@@ -746,6 +746,10 @@ static int get_dimm_config(const struct mem_ctl_info *mci) | |||
746 | 746 | ||
747 | csr->edac_mode = mode; | 747 | csr->edac_mode = mode; |
748 | csr->mtype = mtype; | 748 | csr->mtype = mtype; |
749 | snprintf(csr->channels[0].label, | ||
750 | sizeof(csr->channels[0].label), | ||
751 | "CPU#%uChannel#%u_DIMM#%u", | ||
752 | pvt->i7core_dev->socket, i, j); | ||
749 | 753 | ||
750 | csrow++; | 754 | csrow++; |
751 | } | 755 | } |