summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Koshy <jkoshy@FreeBSD.org>2008-11-15 10:56:36 +0000
committerJoseph Koshy <jkoshy@FreeBSD.org>2008-11-15 10:56:36 +0000
commit8cd64ec8ad8689409f2f632b82fae7018a619837 (patch)
tree468d2d24c7c5eda318543db98f8be16b0cffe1ba
parent316f941e96b69f02ff168e81d73b5f9bf89dd296 (diff)
Notes
-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 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;
}