diff options
author | obrien <obrien@FreeBSD.org> | 2011-11-15 06:44:07 +0000 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 2011-11-15 06:44:07 +0000 |
commit | 645c15928a6a22d853a33666471d09218dd355ca (patch) | |
tree | cbd8ed43ef703bf724c052cbf7053975612ec9cc /usr.sbin/pmccontrol | |
parent | 5509fbb6318be0fa4bcd3ca15c669f0ba0231d8a (diff) | |
download | FreeBSD-src-645c15928a6a22d853a33666471d09218dd355ca.zip FreeBSD-src-645c15928a6a22d853a33666471d09218dd355ca.tar.gz |
Improve the chances of matching an outputted string with the line of code.
Diffstat (limited to 'usr.sbin/pmccontrol')
-rw-r--r-- | usr.sbin/pmccontrol/pmccontrol.c | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/usr.sbin/pmccontrol/pmccontrol.c b/usr.sbin/pmccontrol/pmccontrol.c index 2a680ae..f0bd31f 100644 --- a/usr.sbin/pmccontrol/pmccontrol.c +++ b/usr.sbin/pmccontrol/pmccontrol.c @@ -147,8 +147,9 @@ pmcc_do_enable_disable(struct pmcc_op_list *op_list) npmc = 0; for (c = 0; c < ncpu; c++) { if ((t = pmc_npmc(c)) < 0) - err(EX_OSERR, "Unable to determine the number of " - "PMCs in CPU %d", c); + err(EX_OSERR, + "Unable to determine the number of PMCs in CPU %d", + c); npmc = t > npmc ? t : npmc; } @@ -211,8 +212,8 @@ pmcc_do_enable_disable(struct pmcc_op_list *op_list) if (error < 0) err(EX_OSERR, "%s of PMC %d on CPU %d failed", - b == PMCC_OP_ENABLE ? "Enable" : - "Disable", j, i); + b == PMCC_OP_ENABLE ? "Enable" : "Disable", + j, i); } return error; @@ -308,8 +309,9 @@ pmcc_do_list_events(void) printf("%s\n", pmc_name_of_class(c)); if (pmc_event_names_of_class(c, &eventnamelist, &nevents) < 0) - err(EX_OSERR, "ERROR: Cannot find information for " - "event class \"%s\"", pmc_name_of_class(c)); + err(EX_OSERR, +"ERROR: Cannot find information for event class \"%s\"", + pmc_name_of_class(c)); for (j = 0; j < nevents; j++) printf("\t%s\n", eventnamelist[j]); @@ -481,7 +483,8 @@ main(int argc, char **argv) break; case PMCC_ENABLE_DISABLE: if (STAILQ_EMPTY(&head)) - errx(EX_USAGE, "No PMCs specified to enable or disable"); + errx(EX_USAGE, + "No PMCs specified to enable or disable"); error = pmcc_do_enable_disable(&head); break; default: |