]> www.infradead.org Git - users/mchehab/rasdaemon.git/commitdiff
ras-events: Fence-post error when reporting number of cpus we listen to
authorTony Luck <tony.luck@intel.com>
Tue, 28 May 2013 18:20:36 +0000 (11:20 -0700)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 28 May 2013 19:47:08 +0000 (16:47 -0300)
I see:
rasdaemon: Listening to events for cpus 0 to 64

which would be 65 total cpus - I only have 64.

Fix the log message to use "n_cpus - 1" rather than "n_cpus".

Signed-off-by: Tony Luck <tony.luck@intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
ras-events.c

index 13dd0bd952e8d32349e96ad0397f34b50ac9d55a..ecbbd3afa66df5fbd5ae1f437de89ae687e3a31a 100644 (file)
@@ -332,7 +332,7 @@ static int read_ras_event_all_cpus(struct pthread_data *pdata,
                }
        }
 
-       log(TERM, LOG_INFO, "Listening to events for cpus 0 to %d\n", n_cpus);
+       log(TERM, LOG_INFO, "Listening to events for cpus 0 to %d\n", n_cpus - 1);
        if (pdata[0].ras->record_events)
                ras_mc_event_opendb(pdata[0].cpu, pdata[0].ras);