Skip to contentSkip to conversation

CLD: cleanup: add a log entry about sent packet

PATCH Applied Pete Zaitcev 2 participants 2 messages Apr 14, 2010 Library code

lore
Share & tools
lore
#0 lore raw

PATCH 2/8 CLD: cleanup: add a log entry about sent packet

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.

---
 lib/cldc.c |    2 ++
 1 file changed, 2 insertions(+)
lib/cldc.c +2 -0
index be8598f..305e05d 100644
@@ -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);
#1 lore raw
Quoted 9 lines · Pete Zaitcev

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.

---
  lib/cldc.c |    2 ++
  1 file changed, 2 insertions(+)

applied 2-6