Skip to content

Commit 3256c18

Browse files
committed
Revert "add debug"
This reverts commit 33cadea.
1 parent d2be472 commit 3256c18

File tree

1 file changed

+0
-8
lines changed
  • hadoop-common-project/hadoop-common/src/main/native/src/org/apache/hadoop/crypto

1 file changed

+0
-8
lines changed

hadoop-common-project/hadoop-common/src/main/native/src/org/apache/hadoop/crypto/OpensslCipher.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -125,9 +125,7 @@ static void loadSm4Ctr(JNIEnv *env)
125125
{
126126
#ifdef UNIX
127127
#if OPENSSL_VERSION_NUMBER >= 0x10101001L
128-
printf("loadSm4Ctr DEBUG1: dlsym_EVP_sm4_ctr is %d\n", (dlsym_EVP_sm4_ctr == null));
129128
LOAD_DYNAMIC_SYMBOL(dlsym_EVP_sm4_ctr, env, openssl, "EVP_sm4_ctr");
130-
printf("loadSm4Ctr DEBUG2: dlsym_EVP_sm4_ctr is %d\n", (dlsym_EVP_sm4_ctr == null));
131129
#endif
132130
#endif
133131
}
@@ -273,18 +271,12 @@ JNIEXPORT jlong JNICALL Java_org_apache_hadoop_crypto_OpensslCipher_initContext
273271
if (alg == SM4_CTR) {
274272
int ret = 0;
275273
#if OPENSSL_VERSION_NUMBER >= 0x10101001L
276-
printf("initContext DEBUG1: OPENSSL_VERSION_NUMBER=%lX\n", OPENSSL_VERSION_NUMBER);
277274
if (dlsym_EVP_sm4_ctr == NULL) {
278-
printf("initContext DEBUG2: dlsym_EVP_sm4_ctr is null\n");
279275
ret = 1;
280-
} else {
281-
printf("initContext DEBUG3: dlsym_EVP_sm4_ctr is not null\n");
282276
}
283277
#else
284-
printf("initContext DEBUG4: OPENSSL_VERSION_NUMBER=%lX\n", OPENSSL_VERSION_NUMBER);
285278
ret = 1;
286279
#endif
287-
printf("initContext DEBUG5: OPENSSL_VERSION_NUMBER=%lX\n", OPENSSL_VERSION_NUMBER);
288280
if (ret) {
289281
THROW(env, "java/security/NoSuchAlgorithmException", \
290282
"Doesn't support SM4 CTR.");

0 commit comments

Comments
 (0)