summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pmcstat/pmcstat_log.c
diff options
context:
space:
mode:
authorfabient <fabient@FreeBSD.org>2010-04-14 21:53:27 +0000
committerfabient <fabient@FreeBSD.org>2010-04-14 21:53:27 +0000
commitd7c34a15b8684c6d9333e40ee8de208dfd3ae3e3 (patch)
tree0f2ef86dfd8880d12e16350481d03b612494a973 /usr.sbin/pmcstat/pmcstat_log.c
parent3afd1296580997857731527a83ee786bce434ff5 (diff)
downloadFreeBSD-src-d7c34a15b8684c6d9333e40ee8de208dfd3ae3e3.zip
FreeBSD-src-d7c34a15b8684c6d9333e40ee8de208dfd3ae3e3.tar.gz
Move fatal error at the right place.
Fix exit from top mode when checking if PMC is available. MFC after: 3 days
Diffstat (limited to 'usr.sbin/pmcstat/pmcstat_log.c')
-rw-r--r--usr.sbin/pmcstat/pmcstat_log.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/usr.sbin/pmcstat/pmcstat_log.c b/usr.sbin/pmcstat/pmcstat_log.c
index 51f66ca..6d8c57a 100644
--- a/usr.sbin/pmcstat/pmcstat_log.c
+++ b/usr.sbin/pmcstat/pmcstat_log.c
@@ -1050,7 +1050,6 @@ pmcstat_pmcid_to_name(pmc_id_t pmcid)
if (pr->pr_pmcid == pmcid)
return (pmcstat_string_unintern(pr->pr_pmcname));
- err(EX_SOFTWARE, "ERROR: cannot find pmcid");
return NULL;
}
@@ -1083,7 +1082,6 @@ pmcstat_pmcindex_to_pmcr(int pmcin)
if (pr->pr_pmcin == pmcin)
return pr;
- err(EX_SOFTWARE, "ERROR: invalid pmcindex");
return NULL;
}
OpenPOWER on IntegriCloud