From a935791d54078f43209ffbc1886ac5e68772ce34 Mon Sep 17 00:00:00 2001 From: Rich Salz Date: Wed, 19 May 2021 11:09:49 -0400 Subject: Rework and make DEBUG macros consistent. Remove unused -DCONF_DEBUG and -DBN_CTX_DEBUG. Rename REF_PRINT to REF_DEBUG for consistency, and add a new tracing category and use it for printing reference counts. Rename -DDEBUG_UNUSED to -DUNUSED_RESULT_DEBUG Fix BN_DEBUG_RAND so it compiles and, when set, force DEBUG_RAND to be set also. Rename engine_debug_ref to be ENGINE_REF_PRINT also for consistency. Fixes #15357 Reviewed-by: Tomas Mraz Reviewed-by: Richard Levitte (Merged from https://github.com/openssl/openssl/pull/15353) --- crypto/ec/ecp_nistp256.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crypto/ec/ecp_nistp256.c') diff --git a/crypto/ec/ecp_nistp256.c b/crypto/ec/ecp_nistp256.c index 67d2dce9b7..4a55f925c4 100644 --- a/crypto/ec/ecp_nistp256.c +++ b/crypto/ec/ecp_nistp256.c @@ -1881,7 +1881,7 @@ void EC_nistp256_pre_comp_free(NISTP256_PRE_COMP *pre) return; CRYPTO_DOWN_REF(&pre->references, &i, pre->lock); - REF_PRINT_COUNT("EC_nistp256", x); + REF_PRINT_COUNT("EC_nistp256", pre); if (i > 0) return; REF_ASSERT_ISNT(i < 0); -- cgit v1.2.3