pmcstat: augment an error message

It also applies to the -t argument.

Reviewed by:	jkoshy
MFC after:	2 weeks
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D39907

(cherry picked from commit bf66159342)
This commit is contained in:
Mitchell Horne 2023-05-05 18:58:23 -03:00
parent 9520dca1ce
commit e6246bd85a

View file

@ -923,7 +923,7 @@ main(int argc, char **argv)
if ((args.pa_required & FLAG_HAS_PROCESS_PMCS) &&
(args.pa_flags & FLAG_HAS_PROCESS_PMCS) == 0)
errx(EX_USAGE,
"ERROR: options -d, -E, and -W require a process mode PMC to be specified."
"ERROR: options -d, -E, -t, and -W require a process mode PMC to be specified."
);
/* check for -c cpu with no system mode PMCs or logfile. */