From 20cf678d4b1578fe32d2cc273d659a7fe6b6c1be Mon Sep 17 00:00:00 2001 From: Dorving Date: Tue, 3 May 2022 06:57:36 +0200 Subject: [PATCH] Added newline for error message when packet length exceeds max --- .../implementations/network/NetworkExtensionsProducer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/G-Earth/src/main/java/gearth/services/extension_handler/extensions/implementations/network/NetworkExtensionsProducer.java b/G-Earth/src/main/java/gearth/services/extension_handler/extensions/implementations/network/NetworkExtensionsProducer.java index 2d9d427..1500e12 100644 --- a/G-Earth/src/main/java/gearth/services/extension_handler/extensions/implementations/network/NetworkExtensionsProducer.java +++ b/G-Earth/src/main/java/gearth/services/extension_handler/extensions/implementations/network/NetworkExtensionsProducer.java @@ -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; }