* [PATCH 6/9] [CCID2]: Redundant debugging output
@ 2007-11-03 12:04 Gerrit Renker
2007-11-07 18:09 ` Ian McDonald
0 siblings, 1 reply; 2+ messages in thread
From: Gerrit Renker @ 2007-11-03 12:04 UTC (permalink / raw)
To: dccp
This reduces the amount of redundant debugging messages:
* pipe/cwnd are printed in both tx_send_packet() and tx_packet_sent().
Both functions are called immediately after one another, so one occurrence is sufficient.
* Since tx_packet_sent() prints pipe/cwnd already, the second printk for pipe is redundant.
* In tx_packet_sent() the check_sanity function is called twice (at the begin and at the end).
Signed-off-by: Gerrit Renker <gerrit@erg.abdn.ac.uk>
---
net/dccp/ccids/ccid2.c | 6 ------
1 files changed, 0 insertions(+), 6 deletions(-)
diff --git a/net/dccp/ccids/ccid2.c b/net/dccp/ccids/ccid2.c
index 96908df..176fef9 100644
--- a/net/dccp/ccids/ccid2.c
+++ b/net/dccp/ccids/ccid2.c
@@ -126,9 +126,6 @@ static int ccid2_hc_tx_send_packet(struct sock *sk, struct sk_buff *skb)
{
struct ccid2_hc_tx_sock *hctx = ccid2_hc_tx_sk(sk);
- ccid2_pr_debug("pipe=%d cwnd=%d\n", hctx->ccid2hctx_pipe,
- hctx->ccid2hctx_cwnd);
-
if (hctx->ccid2hctx_pipe < hctx->ccid2hctx_cwnd) {
/* OK we can send... make sure previous packet was sent off */
if (!hctx->ccid2hctx_sendwait) {
@@ -239,8 +236,6 @@ static void ccid2_hc_tx_packet_sent(struct sock *sk, int more, unsigned int len)
struct ccid2_seq *next;
u64 seq;
- ccid2_hc_tx_check_sanity(hctx);
-
BUG_ON(!hctx->ccid2hctx_sendwait);
hctx->ccid2hctx_sendwait = 0;
hctx->ccid2hctx_pipe++;
@@ -326,7 +321,6 @@ static void ccid2_hc_tx_packet_sent(struct sock *sk, int more, unsigned int len)
ccid2_start_rto_timer(sk);
#ifdef CONFIG_IP_DCCP_CCID2_DEBUG
- ccid2_pr_debug("pipe=%d\n", hctx->ccid2hctx_pipe);
ccid2_pr_debug("Sent: seq=%llu\n", (unsigned long long)seq);
do {
struct ccid2_seq *seqp = hctx->ccid2hctx_seqt;
--
1.5.2.2.238.g7cbf2f2-dirty
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [PATCH 6/9] [CCID2]: Redundant debugging output
2007-11-03 12:04 [PATCH 6/9] [CCID2]: Redundant debugging output Gerrit Renker
@ 2007-11-07 18:09 ` Ian McDonald
0 siblings, 0 replies; 2+ messages in thread
From: Ian McDonald @ 2007-11-07 18:09 UTC (permalink / raw)
To: dccp
On 11/4/07, Gerrit Renker <gerrit@erg.abdn.ac.uk> wrote:
> This reduces the amount of redundant debugging messages:
>
> * pipe/cwnd are printed in both tx_send_packet() and tx_packet_sent().
> Both functions are called immediately after one another, so one occurrence is sufficient.
>
> * Since tx_packet_sent() prints pipe/cwnd already, the second printk for pipe is redundant.
>
> * In tx_packet_sent() the check_sanity function is called twice (at the begin and at the end).
>
> Signed-off-by: Gerrit Renker <gerrit@erg.abdn.ac.uk>
Acked-by: Ian McDonald <ian.mcdonald@jandi.co.nz>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-11-07 18:09 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-03 12:04 [PATCH 6/9] [CCID2]: Redundant debugging output Gerrit Renker
2007-11-07 18:09 ` Ian McDonald
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox