: [DCCP] CCID2: Add Kconfig option for CCID2 debug
PATCH 7/10 : [DCCP] CCID2: Add Kconfig option for CCID2 debug
Allow the user to choose whether or not to enable CCID2 debugging via Kconfig.
Signed-off-by Andrea Bittau <[email protected]>
Signed-off-by Arnaldo Carvalho de Melo <[email protected]>
------------------------------------------------------------------------------
Kconfig | 8 ++++++++ ccid2.c | 7 +++---- 2 files changed, 11 insertions(+), 4 deletions(-)
------------------------------------------------------------------------------
net/dccp/ccids/Kconfig +8 -0
@@ -30,6 +30,14 @@ config IP_DCCP_CCID2 If in doubt, say M. +config IP_DCCP_CCID2_DEBUG + bool "CCID2 debug" + depends on IP_DCCP_CCID2 + ---help--- + Enable CCID2 debug messages. + + If in doubt, say N. + config IP_DCCP_CCID3 tristate "CCID3 (TCP-Friendly) (EXPERIMENTAL)" depends on IP_DCCP
net/dccp/ccids/ccid2.c +3 -4
@@ -35,8 +35,7 @@ #include "ccid2.h"static int ccid2_debug; -#undef CCID2_DEBUG -#ifdef CCID2_DEBUG +#ifdef CONFIG_IP_DCCP_CCID2_DEBUG #define ccid2_pr_debug(format, a...) \ do { if (ccid2_debug) \ printk(KERN_DEBUG "%s: " format, __FUNCTION__, ##a); \
@@ -47,7 +46,7 @@ #endifstatic const int ccid2_seq_len =128 ; -#ifdef CCID2_DEBUG +#ifdef CONFIG_IP_DCCP_CCID2_DEBUG static void ccid2_hc_tx_check_sanity (const struct ccid2_hc_tx_sock *hctx) {int len =0 ;
@@ -295,7 +294,7 @@ static void ccid2_hc_tx_packet_sent(struif (!timer_pending (&hctx->ccid2hctx_rtotimer))ccid2_start_rto_timer (sk); -#ifdef CCID2_DEBUG +#ifdef CONFIG_IP_DCCP_CCID2_DEBUG ccid2_pr_debug("pipe=%d\n", hctx->ccid2hctx_pipe); ccid2_pr_debug("Sent: seq=%llu\n", seq); do {
David Miller
maintainerFrom: Arnaldo Carvalho de Melo <[email protected]>
Date: Thu, 14 Sep 2006 14:12:27 -0300
Quoted 4 lines
Allow the user to choose whether or not to enable CCID2 debugging via
Kconfig.Signed-off-by Andrea Bittau <[email protected]>Signed-off-by Arnaldo Carvalho de Melo <[email protected]>
Adds trailing whitespace, fixed up and applied but I won't fix this up next time :-)
Thanks.