From 8cd64ec8ad8689409f2f632b82fae7018a619837 Mon Sep 17 00:00:00 2001 From: Joseph Koshy Date: Sat, 15 Nov 2008 10:56:36 +0000 Subject: Correct an indexing error (a change missed out in #184802). --- sys/dev/hwpmc/hwpmc_amd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/hwpmc/hwpmc_amd.c b/sys/dev/hwpmc/hwpmc_amd.c index 2ad9ac165512..7e3719fba1ee 100644 --- a/sys/dev/hwpmc/hwpmc_amd.c +++ b/sys/dev/hwpmc/hwpmc_amd.c @@ -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; } -- cgit v1.3