All of lore.kernel.org
 help / color / mirror / Atom feed
* [Patch 2/8] CLD: cleanup: add a log entry about sent packet
@ 2010-04-14 18:34 Pete Zaitcev
  2010-04-14 19:47 ` Jeff Garzik
  0 siblings, 1 reply; 2+ messages in thread
From: Pete Zaitcev @ 2010-04-14 18:34 UTC (permalink / raw)
  To: jeff; +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 <zaitcev@redhat.com>

---
 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);

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [Patch 2/8] CLD: cleanup: add a log entry about sent packet
  2010-04-14 18:34 [Patch 2/8] CLD: cleanup: add a log entry about sent packet Pete Zaitcev
@ 2010-04-14 19:47 ` Jeff Garzik
  0 siblings, 0 replies; 2+ messages in thread
From: Jeff Garzik @ 2010-04-14 19:47 UTC (permalink / raw)
  To: Pete Zaitcev; +Cc: Project Hail List

On 04/14/2010 02:34 PM, Pete Zaitcev wrote:
> 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<zaitcev@redhat.com>
>
> ---
>   lib/cldc.c |    2 ++
>   1 file changed, 2 insertions(+)

applied 2-6


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-04-14 19:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-04-14 18:34 [Patch 2/8] CLD: cleanup: add a log entry about sent packet Pete Zaitcev
2010-04-14 19:47 ` Jeff Garzik

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.