i7core_edac: Improve corrected_error_counts output for RDIMM
authorMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 3 Sep 2009 23:17:26 +0000 (20:17 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 10 May 2010 14:44:58 +0000 (11:44 -0300)
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>
drivers/edac/i7core_edac.c

index 9fe7ec7..76f4e6d 100644 (file)
@@ -1070,9 +1070,9 @@ static ssize_t i7core_ce_regs_show(struct mem_ctl_info *mci, char *data)
                                        pvt->udimm_ce_count[i][2]);
                else
                        for (j = 0; j < NUM_CHANS; j++) {
-                               count = sprintf(data, "socket %d, channel %d"
-                                               "dimm0: %lu\n"
-                                               "dimm1: %lu\ndimm2: %lu\n",
+                               count = sprintf(data, "socket %d, channel %d "
+                                               "RDIMM0: %lu "
+                                               "RDIMM1: %lu RDIMM2: %lu\n",
                                                i, j,
                                                pvt->rdimm_ce_count[i][j][0],
                                                pvt->rdimm_ce_count[i][j][1],