Added newline for error message when packet length exceeds max

This commit is contained in:
Dorving 2022-05-03 06:57:36 +02:00
parent 0547d84d81
commit 20cf678d4b

View File

@ -106,7 +106,7 @@ public final class NetworkExtensionsProducer implements ExtensionProducer {
if (headerId == NetworkExtensionInfo.INCOMING_MESSAGES_IDS.EXTENSIONINFO) {
if (bodyLength > MAX_PACKET_BODY_SIZE) {
System.err.printf("Incoming packet(h=%d, l=%d) exceeds max packet body size %d.", headerId, bodyLength, MAX_PACKET_BODY_SIZE);
System.err.printf("Incoming packet(h=%d, l=%d) exceeds max packet body size %d.\n", headerId, bodyLength, MAX_PACKET_BODY_SIZE);
break;
}