aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2002-12-05 00:56:41 +0000
committerRichard Levitte <levitte@openssl.org>2002-12-05 00:56:41 +0000
commitc4a150c24236c0f6cd3c5e08870098b943083da8 (patch)
tree73f2a6268043815470349179ec000def356c7d09
parenta3c5420b28fa3b31f390749d5401871bf7739baf (diff)
downloadopenssl-c4a150c24236c0f6cd3c5e08870098b943083da8.tar.gz
Supported REF_PRINT with specified reference counter
-rw-r--r--crypto/engine/engine_list.c2
-rw-r--r--e_os.h4
2 files changed, 4 insertions, 2 deletions
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