Commit Diff


commit - 4b0f526006adb30bb127cde29ff67e8bd97352c2
commit + 037b4b76df6122f86d8c9536eb761664a5d71e53
blob - 06236fd43e2ab1269e91e1065efa11786da0ed40
blob + 28a0341e0a28e1485c077393671b51702b1e6141
--- src/ngircd/conn.c
+++ src/ngircd/conn.c
@@ -1839,10 +1839,10 @@ Check_Connections(void)
 				if (My_Connections[i].lastping <
 				    time(NULL) - Conf_PongTimeout) {
 					/* Timeout */
-					LogDebug
-					    ("Connection %d: Ping timeout: %d seconds.",
-					     i, Conf_PongTimeout);
-					snprintf(msg, sizeof(msg), "Ping timeout: %d seconds", Conf_PongTimeout);
+					snprintf(msg, sizeof(msg),
+						 "Ping timeout: %d seconds",
+						 Conf_PongTimeout);
+					LogDebug("Connection %d: %s.", i, msg);
 					Conn_Close(i, NULL, msg, true);
 				}
 			} else if (My_Connections[i].lastdata <