diff options
author | jkoshy <jkoshy@FreeBSD.org> | 2008-11-15 10:56:36 +0000 |
---|---|---|
committer | jkoshy <jkoshy@FreeBSD.org> | 2008-11-15 10:56:36 +0000 |
commit | e4921388d2ef4ac389c6ec6a81d5c2ef6e27c606 (patch) | |
tree | 468d2d24c7c5eda318543db98f8be16b0cffe1ba /sys/dev | |
parent | fb95775d9a2805abaebfdea79a397894d9434a02 (diff) | |
download | FreeBSD-src-e4921388d2ef4ac389c6ec6a81d5c2ef6e27c606.zip FreeBSD-src-e4921388d2ef4ac389c6ec6a81d5c2ef6e27c606.tar.gz |
Correct an indexing error (a change missed out in #184802).
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/hwpmc/hwpmc_amd.c | 2 |
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; } |