pmc: bump PMC major version to reflect ABI breakage and make warning not require verbose

This commit is contained in:
Matt Macy 2018-05-23 19:55:47 +00:00
parent e0d394d096
commit 95104040a3
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=334114
2 changed files with 2 additions and 2 deletions

View File

@ -61,7 +61,7 @@
*
* The patch version is incremented for every bug fix.
*/
#define PMC_VERSION_MAJOR 0x03
#define PMC_VERSION_MAJOR 0x04
#define PMC_VERSION_MINOR 0x01
#define PMC_VERSION_PATCH 0x0000

View File

@ -406,7 +406,7 @@ pmcstat_print_log(void)
ev.pl_u.pl_i.pl_version,
pmc_name_of_cputype(ev.pl_u.pl_i.pl_arch));
if ((ev.pl_u.pl_i.pl_version & 0xFF000000) !=
PMC_VERSION_MAJOR << 24 && args.pa_verbosity > 0)
PMC_VERSION_MAJOR << 24)
warnx(
"WARNING: Log version 0x%x != expected version 0x%x.",
ev.pl_u.pl_i.pl_version, PMC_VERSION);