summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pmccontrol
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/pmccontrol')
-rw-r--r--usr.sbin/pmccontrol/pmccontrol.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/pmccontrol/pmccontrol.c b/usr.sbin/pmccontrol/pmccontrol.c
index a1ed2d5..6ffa2d1 100644
--- a/usr.sbin/pmccontrol/pmccontrol.c
+++ b/usr.sbin/pmccontrol/pmccontrol.c
@@ -288,7 +288,7 @@ pmcc_do_list_events(void)
eventnamelist = NULL;
for (i = 0; i < ci->pm_nclass; i++) {
- c = ci->pm_classes[i];
+ c = ci->pm_classes[i].pm_class;
printf("%s\n", pmc_name_of_class(c));
if (pmc_event_names_of_class(c, &eventnamelist, &nevents) < 0)
OpenPOWER on IntegriCloud