All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: [PATCH 5/8]: Move debugging macro to header file
@ 2006-12-15 21:47 Ian McDonald
  2006-12-18  8:23 ` Ian McDonald
                   ` (12 more replies)
  0 siblings, 13 replies; 15+ messages in thread
From: Ian McDonald @ 2006-12-15 21:47 UTC (permalink / raw)
  To: dccp

On 12/15/06, Gerrit Renker <gerrit@erg.abdn.ac.uk> wrote:
> [CCID3]: Move debugging macro to header file
>
Acked-by: Ian McDonald <ian.mcdonald@jandi.co.nz>
-- 
Web: http://wand.net.nz/~iam4
Blog: http://imcdnzl.blogspot.com
WAND Network Research Group

^ permalink raw reply	[flat|nested] 15+ messages in thread
* [PATCH 5/8]:  Move debugging macro to header file
@ 2006-12-15 10:50 Gerrit Renker
  0 siblings, 0 replies; 15+ messages in thread
From: Gerrit Renker @ 2006-12-15 10:50 UTC (permalink / raw)
  To: dccp

[CCID3]: Move debugging macro to header file

This moves the ccid3_pr_debug macro into the header file,
so that it can be used from other files belonging to the
CCID3 framework as well. 

Thanks to Ian McDonald for the suggestion.

Signed-off-by: Gerrit Renker <gerrit@erg.abdn.ac.uk>
---
 net/dccp/ccids/ccid3.c |    8 +-------
 net/dccp/ccids/ccid3.h |    7 +++++++
 2 files changed, 8 insertions(+), 7 deletions(-)

--- a/net/dccp/ccids/ccid3.c
+++ b/net/dccp/ccids/ccid3.c
@@ -41,13 +41,6 @@
 #include "lib/tfrc.h"
 #include "ccid3.h"
 
-#ifdef CONFIG_IP_DCCP_CCID3_DEBUG
-static int ccid3_debug;
-#define ccid3_pr_debug(format, a...)	DCCP_PR_DEBUG(ccid3_debug, format, ##a)
-#else
-#define ccid3_pr_debug(format, a...)
-#endif
-
 static struct dccp_tx_hist *ccid3_tx_hist;
 static struct dccp_rx_hist *ccid3_rx_hist;
 static struct dccp_li_hist *ccid3_li_hist;
@@ -1227,6 +1220,7 @@ static struct ccid_operations ccid3 = {
 };
 
 #ifdef CONFIG_IP_DCCP_CCID3_DEBUG
+int ccid3_debug;
 module_param(ccid3_debug, int, 0444);
 MODULE_PARM_DESC(ccid3_debug, "Enable debug messages");
 #endif
--- a/net/dccp/ccids/ccid3.h
+++ b/net/dccp/ccids/ccid3.h
@@ -61,6 +61,13 @@
 			rtt = CCID3_SANE_RTT_MAX;			   \
 		} 					} while (0)
 
+#ifdef CONFIG_IP_DCCP_CCID3_DEBUG
+extern int ccid3_debug;
+#define ccid3_pr_debug(format, a...)	DCCP_PR_DEBUG(ccid3_debug, format, ##a)
+#else
+#define ccid3_pr_debug(format, a...)
+#endif
+
 enum ccid3_options {
 	TFRC_OPT_LOSS_EVENT_RATE = 192,
 	TFRC_OPT_LOSS_INTERVALS	 = 193,

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

end of thread, other threads:[~2006-12-28  4:48 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-12-15 21:47 [PATCH 5/8]: Move debugging macro to header file Ian McDonald
2006-12-18  8:23 ` Ian McDonald
2006-12-19  8:56 ` Gerrit Renker
2006-12-19  9:58 ` Ian McDonald
2006-12-19 10:09 ` Gerrit Renker
2006-12-19 17:59 ` Ian McDonald
2006-12-19 21:57 ` Arnaldo Carvalho de Melo
2006-12-19 22:14 ` Ian McDonald
2006-12-19 22:21 ` Arnaldo Carvalho de Melo
2006-12-19 22:38 ` Ian McDonald
2006-12-19 22:53 ` Arnaldo Carvalho de Melo
2006-12-19 23:08 ` Ian McDonald
2006-12-21 11:52 ` Gerrit Renker
2006-12-28  4:48 ` Ian McDonald
  -- strict thread matches above, loose matches on Subject: below --
2006-12-15 10:50 Gerrit Renker

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.