summaryrefslogtreecommitdiffstats
path: root/sys/dev/hwpmc
diff options
context:
space:
mode:
authorjkoshy <jkoshy@FreeBSD.org>2008-11-15 10:56:36 +0000
committerjkoshy <jkoshy@FreeBSD.org>2008-11-15 10:56:36 +0000
commite4921388d2ef4ac389c6ec6a81d5c2ef6e27c606 (patch)
tree468d2d24c7c5eda318543db98f8be16b0cffe1ba /sys/dev/hwpmc
parentfb95775d9a2805abaebfdea79a397894d9434a02 (diff)
downloadFreeBSD-src-e4921388d2ef4ac389c6ec6a81d5c2ef6e27c606.zip
FreeBSD-src-e4921388d2ef4ac389c6ec6a81d5c2ef6e27c606.tar.gz
Correct an indexing error (a change missed out in #184802).
Diffstat (limited to 'sys/dev/hwpmc')
-rw-r--r--sys/dev/hwpmc/hwpmc_amd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/hwpmc/hwpmc_amd.c b/sys/dev/hwpmc/hwpmc_amd.c
index 2ad9ac1..7e3719f 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;
}
OpenPOWER on IntegriCloud