diff --git a/client.cpp b/client.cpp
index 8535803..67bdb2c 100644
--- a/client.cpp
+++ b/client.cpp
@@ -151,7 +151,7 @@ bool Client::handleEchoData(const TunnelHeader &header, int dataLength, uint32_t
 			break;
 	}
 
-	syslog(LOG_DEBUG, "invalid packet type: %d, state:\n", header.type, state);
+	syslog(LOG_DEBUG, "invalid packet type: %d, state: %d", header.type, state);
 
 	return true;
 }
diff --git a/server.cpp b/server.cpp
index 4bc9877..bdc5c72 100644
--- a/server.cpp
+++ b/server.cpp
@@ -198,7 +198,7 @@ bool Server::handleEchoData(const TunnelHeader &header, int dataLength, uint32_t
 			return true;
 	}
 
-	syslog(LOG_DEBUG, "invalid packet from: %s, type: %d, state:\n", Utility::formatIp(realIp).c_str(), header.type, client->state);
+	syslog(LOG_DEBUG, "invalid packet from: %s, type: %d, state: %d", Utility::formatIp(realIp).c_str(), header.type, client->state);
 
 	return true;
 }