dccp: re-enable debug macro
dccp tfrc: revert
This reverts 6aee49c558
("dccp: make local variable static") since
the variable tfrc_debug is referenced by the tfrc_pr_debug(fmt, ...)
macro when TFRC debugging is enabled. If it is enabled, use of the
macro produces a compilation error.
Signed-off-by: Gerrit Renker <gerrit@erg.abdn.ac.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
eb2d4c6487
commit
09db308053
@@ -8,7 +8,7 @@
|
|||||||
#include "tfrc.h"
|
#include "tfrc.h"
|
||||||
|
|
||||||
#ifdef CONFIG_IP_DCCP_TFRC_DEBUG
|
#ifdef CONFIG_IP_DCCP_TFRC_DEBUG
|
||||||
static bool tfrc_debug;
|
bool tfrc_debug;
|
||||||
module_param(tfrc_debug, bool, 0644);
|
module_param(tfrc_debug, bool, 0644);
|
||||||
MODULE_PARM_DESC(tfrc_debug, "Enable TFRC debug messages");
|
MODULE_PARM_DESC(tfrc_debug, "Enable TFRC debug messages");
|
||||||
#endif
|
#endif
|
||||||
|
@@ -21,6 +21,7 @@
|
|||||||
#include "packet_history.h"
|
#include "packet_history.h"
|
||||||
|
|
||||||
#ifdef CONFIG_IP_DCCP_TFRC_DEBUG
|
#ifdef CONFIG_IP_DCCP_TFRC_DEBUG
|
||||||
|
extern bool tfrc_debug;
|
||||||
#define tfrc_pr_debug(format, a...) DCCP_PR_DEBUG(tfrc_debug, format, ##a)
|
#define tfrc_pr_debug(format, a...) DCCP_PR_DEBUG(tfrc_debug, format, ##a)
|
||||||
#else
|
#else
|
||||||
#define tfrc_pr_debug(format, a...)
|
#define tfrc_pr_debug(format, a...)
|
||||||
|
Reference in New Issue
Block a user