Correct an indexing error (a change missed out in #184802).

This commit is contained in:
jkoshy 2008-11-15 10:56:36 +00:00
parent fb95775d9a
commit e4921388d2

View File

@ -958,7 +958,7 @@ pmc_amd_initialize(void)
for (i = 0; i < AMD_NPMCS; i++) {
(void) snprintf(amd_pmcdesc[i].pm_descr.pd_name,
sizeof(amd_pmcdesc[i].pm_descr.pd_name), "%s-%d",
name, i-1);
name, i);
amd_pmcdesc[i].pm_descr.pd_class = class;
}