summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRich Salz <rsalz@akamai.com>2020-01-15 11:41:07 -0500
committerPauli <paul.dale@oracle.com>2020-02-17 12:15:12 +1000
commit0eb154663478968137112441d16b593fdf2ebcf8 (patch)
tree916b26a6b476f1f4c42f29e1d5b38511f2d0c32e
parentbc8b648f744566031ce84d77333dbbcb9689e975 (diff)
Add $debug variable and use it
Reviewed-by: Richard Levitte <levitte@openssl.org> Reviewed-by: Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com> Reviewed-by: Paul Dale <paul.dale@oracle.com> (Merged from https://github.com/openssl/openssl/pull/10852)
-rwxr-xr-xutil/mkdef.pl3
1 files changed, 2 insertions, 1 deletions
diff --git a/util/mkdef.pl b/util/mkdef.pl
index b923cb62c3..6d376d3aab 100755
--- a/util/mkdef.pl
+++ b/util/mkdef.pl
@@ -31,6 +31,7 @@ my $version = undef; # the version to use for the library
my $OS = undef; # the operating system family
my $verbose = 0;
my $ctest = 0;
+my $debug = 0;
# For VMS, some modules may have case insensitive names
my $case_insensitive = 0;
@@ -193,7 +194,7 @@ sub feature_filter {
my $symdep = $1 * 10000 + $2 * 100 + ($3 // 0);
$verdict = 0 if $config{api} >= $symdep;
print STDERR "DEBUG: \$symdep = $symdep, \$verdict = $verdict\n"
- if $1 == 0;
+ if $debug && $1 == 0;
}
}