Skip to content

Commit a7fb08c

Browse files
committedMar 14, 2023
8293815: P11PSSSignature.engineUpdate should not print debug messages during normal operation
Backport-of: 80615a6f39bf8929908804ce3f9f5c6d4b3f2864
1 parent 7c5d77c commit a7fb08c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed
 

‎jdk/src/share/classes/sun/security/pkcs11/P11PSSSignature.java

+4-4
Original file line numberDiff line numberDiff line change
@@ -501,10 +501,10 @@ protected void engineUpdate(byte[] b, int ofs, int len)
501501
case T_UPDATE:
502502
try {
503503
if (mode == M_SIGN) {
504-
System.out.println(this + ": Calling C_SignUpdate");
504+
if (DEBUG) System.out.println(this + ": Calling C_SignUpdate");
505505
token.p11.C_SignUpdate(session.id(), 0, b, ofs, len);
506506
} else {
507-
System.out.println(this + ": Calling C_VerfifyUpdate");
507+
if (DEBUG) System.out.println(this + ": Calling C_VerfifyUpdate");
508508
token.p11.C_VerifyUpdate(session.id(), 0, b, ofs, len);
509509
}
510510
bytesProcessed += len;
@@ -550,11 +550,11 @@ protected void engineUpdate(ByteBuffer byteBuffer) {
550550
int ofs = byteBuffer.position();
551551
try {
552552
if (mode == M_SIGN) {
553-
System.out.println(this + ": Calling C_SignUpdate");
553+
if (DEBUG) System.out.println(this + ": Calling C_SignUpdate");
554554
token.p11.C_SignUpdate
555555
(session.id(), addr + ofs, null, 0, len);
556556
} else {
557-
System.out.println(this + ": Calling C_VerifyUpdate");
557+
if (DEBUG) System.out.println(this + ": Calling C_VerifyUpdate");
558558
token.p11.C_VerifyUpdate
559559
(session.id(), addr + ofs, null, 0, len);
560560
}

0 commit comments

Comments
 (0)