From 4c79721dd46a0fb6dfc1ef9c221f4618d32f13c3 Mon Sep 17 00:00:00 2001 From: jkoshy Date: Sat, 21 Apr 2007 12:04:03 +0000 Subject: Correct a sanity check. --- usr.sbin/pmcstat/pmcstat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'usr.sbin/pmcstat') diff --git a/usr.sbin/pmcstat/pmcstat.c b/usr.sbin/pmcstat/pmcstat.c index 95c40cf..f2c0596 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."); -- cgit v1.1