From: Martin Schwenke Date: Mon, 21 Mar 2016 00:45:10 +0000 (+1100) Subject: ctdb-killtcp: Clarify a debug message X-Git-Tag: tdb-1.3.9~34 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d7fa4b76c57358406ddc53569372add7fc57089b;p=thirdparty%2Fsamba.git ctdb-killtcp: Clarify a debug message The end of the connection in parentheses is not the end being killed. Signed-off-by: Martin Schwenke Reviewed-by: Amitay Isaacs --- diff --git a/ctdb/tools/ctdb_killtcp.c b/ctdb/tools/ctdb_killtcp.c index 27b3e89eb34..5347849e0c5 100644 --- a/ctdb/tools/ctdb_killtcp.c +++ b/ctdb/tools/ctdb_killtcp.c @@ -132,14 +132,14 @@ static void capture_tcp_handler(struct tevent_context *ev, return; } - /* This one has been tickled ! - now reset him and remove him from the list. - */ + /* This connection has been tickled! RST it and remove it + * from the list. */ DEBUG(DEBUG_INFO, - ("sending a tcp reset to kill connection :%d -> %s:%d\n", - ntohs(con->dst_addr.ip.sin_port), + ("Sending a TCP RST to kill connection (%s:%d) -> %s:%d\n", ctdb_sock_addr_to_string(con, &con->src_addr), - ntohs(con->src_addr.ip.sin_port))); + ntohs(con->src_addr.ip.sin_port), + ctdb_sock_addr_to_string(con, &con->dst_addr), + ntohs(con->dst_addr.ip.sin_port))); ctdb_sys_send_tcp(&con->dst_addr, &con->src_addr, ack_seq, seq, 1); talloc_free(con);