dect
/
linux-2.6
Archived
13
0
Fork 0

i7core_edac: Initialize memory name with cpu, channel, bank

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
Mauro Carvalho Chehab 2011-09-16 13:37:29 -03:00
parent 4fad8098bc
commit 767ba4a52a
1 changed files with 4 additions and 0 deletions

View File

@ -746,6 +746,10 @@ static int get_dimm_config(const struct mem_ctl_info *mci)
csr->edac_mode = mode;
csr->mtype = mtype;
snprintf(csr->channels[0].label,
sizeof(csr->channels[0].label),
"CPU#%uChannel#%u_DIMM#%u",
pvt->i7core_dev->socket, i, j);
csrow++;
}