Netdev List
 help / color / mirror / Atom feed
* [PATCH] pktgen: pktgen should not print info that it is spinning
@ 2008-01-28 21:16 Jesse Brandeburg
  2008-02-01  1:00 ` David Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Jesse Brandeburg @ 2008-01-28 21:16 UTC (permalink / raw)
  To: netdev; +Cc: davem, auke-jan.h.kok, Jesse Brandeburg, Robert Olsson

when using pktgen to send delay packets the module prints repeatedly to the
kernel log:
sleeping for X
sleeping for X
...

This is probably just a debugging item left in and should not be enabled for
regular use of the module.

Signed-off-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
CC: Robert Olsson <Robert.Olsson@data.slu.se>
---

 net/core/pktgen.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)


diff --git a/net/core/pktgen.c b/net/core/pktgen.c
index 285ec3e..b1b1aba 100644
--- a/net/core/pktgen.c
+++ b/net/core/pktgen.c
@@ -2138,7 +2138,6 @@ static void spin(struct pktgen_dev *pkt_dev, __u64 spin_until_us)
 	__u64 now;
 
 	start = now = getCurUs();
-	printk(KERN_INFO "sleeping for %d\n", (int)(spin_until_us - now));
 	while (now < spin_until_us) {
 		/* TODO: optimize sleeping behavior */
 		if (spin_until_us - now > jiffies_to_usecs(1) + 1)


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

end of thread, other threads:[~2008-02-01  0:59 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-28 21:16 [PATCH] pktgen: pktgen should not print info that it is spinning Jesse Brandeburg
2008-02-01  1:00 ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox