From: Richard Levitte Date: Thu, 5 Dec 2002 00:56:41 +0000 (+0000) Subject: Supported REF_PRINT with specified reference counter X-Git-Tag: OpenSSL-engine-0_9_6h~4 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=c4a150c24236c0f6cd3c5e08870098b943083da8;p=oweals%2Fopenssl.git Supported REF_PRINT with specified reference counter --- diff --git a/crypto/engine/engine_list.c b/crypto/engine/engine_list.c index 0930350852..730f415dc8 100644 --- a/crypto/engine/engine_list.c +++ b/crypto/engine/engine_list.c @@ -421,7 +421,7 @@ int ENGINE_free(ENGINE *e) } i = CRYPTO_add(&e->struct_ref,-1,CRYPTO_LOCK_ENGINE); #ifdef REF_PRINT - REF_PRINT("ENGINE",e); + REF_PRINT2("ENGINE",e,struct_ref); #endif if (i > 0) return 1; #ifdef REF_CHECK diff --git a/e_os.h b/e_os.h index 58df717722..a0ea45fbee 100644 --- a/e_os.h +++ b/e_os.h @@ -73,7 +73,9 @@ extern "C" { /* Used to checking reference counts, most while doing perl5 stuff :-) */ #ifdef REF_PRINT #undef REF_PRINT -#define REF_PRINT(a,b) fprintf(stderr,"%08X:%4d:%s\n",(int)b,b->references,a) +#undef REF_PRINT2 +#define REF_PRINT(a,b) REF_PRINT2(a,b,references) +#define REF_PRINT2(a,b,r) fprintf(stderr,"%08X:%4d:%s\n",(int)b,b->r,a) #endif #ifndef DEVRANDOM