aboutsummaryrefslogtreecommitdiff
path: root/net/dccp/dccp.h
diff options
context:
space:
mode:
Diffstat (limited to 'net/dccp/dccp.h')
-rw-r--r--net/dccp/dccp.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/net/dccp/dccp.h b/net/dccp/dccp.h
index 363fa520056..ecb4e7bd1a8 100644
--- a/net/dccp/dccp.h
+++ b/net/dccp/dccp.h
@@ -18,6 +18,14 @@
#include <net/tcp.h>
#include "ackvec.h"
+#define DCCP_CRIT(fmt, a...) LIMIT_NETDEBUG(KERN_CRIT fmt " at %s:%d/%s()\n", \
+ ##a, __FILE__, __LINE__, __FUNCTION__)
+#define DCCP_BUG(fmt, a...) do { DCCP_CRIT(fmt, ##a); dump_stack(); } while (0)
+#define DCCP_BUG_ON(cond) do { if (unlikely((cond) == 0)) \
+ DCCP_BUG("BUG: condition \"%s\" fails",\
+ __stringify((cond))); \
+ } while (0)
+
#ifdef CONFIG_IP_DCCP_DEBUG
extern int dccp_debug;