i7core_edac: Improve corrected_error_counts output for RDIMM

Just cosmetics. instead of showing something like:

socket 0, channel 2dimm0: 1
dimm1: 0
dimm2: 0
socket 1, channel 2dimm0: 0
dimm1: 0
dimm2: 0

Show:

socket 0, channel 2 RDIMM0: 1 RDIMM1: 0 RDIMM2: 0
socket 0, channel 2 RDIMM0: 0 RDIMM1: 0 RDIMM2: 0

This is more synthetic and easier to parse.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
Mauro Carvalho Chehab 2009-09-03 20:17:26 -03:00
parent bc2d7245ff
commit 3a3bb4a647
1 changed files with 3 additions and 3 deletions

View File

@ -1071,8 +1071,8 @@ static ssize_t i7core_ce_regs_show(struct mem_ctl_info *mci, char *data)
else else
for (j = 0; j < NUM_CHANS; j++) { for (j = 0; j < NUM_CHANS; j++) {
count = sprintf(data, "socket %d, channel %d " count = sprintf(data, "socket %d, channel %d "
"dimm0: %lu\n" "RDIMM0: %lu "
"dimm1: %lu\ndimm2: %lu\n", "RDIMM1: %lu RDIMM2: %lu\n",
i, j, i, j,
pvt->rdimm_ce_count[i][j][0], pvt->rdimm_ce_count[i][j][0],
pvt->rdimm_ce_count[i][j][1], pvt->rdimm_ce_count[i][j][1],