[PKTGEN]: pktgen should not print info that it is spinning

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Linux Kernel Mailing List
Date: Friday, February 1, 2008 - 4:03 am

Gitweb:     http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=174ce0...
Commit:     174ce0483198b9dffd712fdd7d53635954fddffe
Parent:     72eb7bd2693d83e161442b709b107dd77c77b4f2
Author:     Jesse Brandeburg <jesse.brandeburg@intel.com>
AuthorDate: Thu Jan 31 16:59:47 2008 -0800
Committer:  David S. Miller <davem@davemloft.net>
CommitDate: Thu Jan 31 19:28:26 2008 -0800

    [PKTGEN]: pktgen should not print info that it is spinning
    
    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>
    Signed-off-by: David S. Miller <davem@davemloft.net>
---
 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 b7f2de1..bfcdfae 100644
--- a/net/core/pktgen.c
+++ b/net/core/pktgen.c
@@ -2042,7 +2042,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)
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PKTGEN]: pktgen should not print info that it is spinning, Linux Kernel Mailing ..., (Fri Feb 1, 4:03 am)