From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pete Zaitcev Subject: [Patch 2/8] CLD: cleanup: add a log entry about sent packet Date: Wed, 14 Apr 2010 12:34:03 -0600 Message-ID: <20100414123403.61fea3b6@redhat.com> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: Sender: hail-devel-owner@vger.kernel.org List-ID: Content-Type: text/plain; charset="us-ascii" To: jeff@garzik.org Cc: Project Hail List Currently, there's nothing in the verbose output about sent packets at all. No, really! This is very confusing, even if I run tcpdump in the same time. I think we should add this. Signed-off-by: Pete Zaitcev --- lib/cldc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/cldc.c b/lib/cldc.c index be8598f..305e05d 100644 --- a/lib/cldc.c +++ b/lib/cldc.c @@ -677,6 +677,8 @@ static void sess_expire(struct cldc_session *sess) static int sess_send_pkt(struct cldc_session *sess, const void *pkt, size_t pkt_len) { + HAIL_VERBOSE(&sess->log, "%s: sending %ld bytes", + __func__, (long)pkt_len); return sess->ops->pkt_send(sess->private, sess->addr, sess->addr_len, pkt, pkt_len);