aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Koshy <jkoshy@FreeBSD.org>2007-04-21 12:04:03 +0000
committerJoseph Koshy <jkoshy@FreeBSD.org>2007-04-21 12:04:03 +0000
commit00a22dc5f95299c406f873c019a9c99f4ba2c0e4 (patch)
tree245d54c8d343864e35d04de48a415351efc8c496
parent9de81c72731e145de43cd3a41bb4016ae99f2e1a (diff)
downloadsrc-00a22dc5f95299c406f873c019a9c99f4ba2c0e4.tar.gz
src-00a22dc5f95299c406f873c019a9c99f4ba2c0e4.zip
Correct a sanity check.
Notes
Notes: svn path=/head/; revision=168927
-rw-r--r--usr.sbin/pmcstat/pmcstat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/pmcstat/pmcstat.c b/usr.sbin/pmcstat/pmcstat.c
index 95c40cf0cc38..f2c0596aa0f3 100644
--- a/usr.sbin/pmcstat/pmcstat.c
+++ b/usr.sbin/pmcstat/pmcstat.c
@@ -708,7 +708,7 @@ main(int argc, char **argv)
*/
if ((args.pa_flags & FLAG_HAS_COUNTING_PMCS) &&
(args.pa_flags & FLAG_HAS_SAMPLING_PMCS) &&
- ((args.pa_required & FLAG_HAS_OUTPUT_LOGFILE) == 0))
+ ((args.pa_flags & FLAG_HAS_OUTPUT_LOGFILE) == 0))
errx(EX_USAGE, "ERROR: option -O is required if counting and "
"sampling PMCs are specified together.");