diff options
Diffstat (limited to 'net/dccp/dccp.h')
-rw-r--r-- | net/dccp/dccp.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/net/dccp/dccp.h b/net/dccp/dccp.h index ba2ef94a2302..f44d492d3b74 100644 --- a/net/dccp/dccp.h +++ b/net/dccp/dccp.h | |||
@@ -23,9 +23,9 @@ | |||
23 | * DCCP - specific warning and debugging macros. | 23 | * DCCP - specific warning and debugging macros. |
24 | */ | 24 | */ |
25 | #define DCCP_WARN(fmt, a...) LIMIT_NETDEBUG(KERN_WARNING "%s: " fmt, \ | 25 | #define DCCP_WARN(fmt, a...) LIMIT_NETDEBUG(KERN_WARNING "%s: " fmt, \ |
26 | __FUNCTION__, ##a) | 26 | __func__, ##a) |
27 | #define DCCP_CRIT(fmt, a...) printk(KERN_CRIT fmt " at %s:%d/%s()\n", ##a, \ | 27 | #define DCCP_CRIT(fmt, a...) printk(KERN_CRIT fmt " at %s:%d/%s()\n", ##a, \ |
28 | __FILE__, __LINE__, __FUNCTION__) | 28 | __FILE__, __LINE__, __func__) |
29 | #define DCCP_BUG(a...) do { DCCP_CRIT("BUG: " a); dump_stack(); } while(0) | 29 | #define DCCP_BUG(a...) do { DCCP_CRIT("BUG: " a); dump_stack(); } while(0) |
30 | #define DCCP_BUG_ON(cond) do { if (unlikely((cond) != 0)) \ | 30 | #define DCCP_BUG_ON(cond) do { if (unlikely((cond) != 0)) \ |
31 | DCCP_BUG("\"%s\" holds (exception!)", \ | 31 | DCCP_BUG("\"%s\" holds (exception!)", \ |
@@ -36,7 +36,7 @@ | |||
36 | printk(fmt, ##args); \ | 36 | printk(fmt, ##args); \ |
37 | } while(0) | 37 | } while(0) |
38 | #define DCCP_PR_DEBUG(enable, fmt, a...) DCCP_PRINTK(enable, KERN_DEBUG \ | 38 | #define DCCP_PR_DEBUG(enable, fmt, a...) DCCP_PRINTK(enable, KERN_DEBUG \ |
39 | "%s: " fmt, __FUNCTION__, ##a) | 39 | "%s: " fmt, __func__, ##a) |
40 | 40 | ||
41 | #ifdef CONFIG_IP_DCCP_DEBUG | 41 | #ifdef CONFIG_IP_DCCP_DEBUG |
42 | extern int dccp_debug; | 42 | extern int dccp_debug; |
@@ -296,7 +296,7 @@ extern unsigned int dccp_poll(struct file *file, struct socket *sock, | |||
296 | extern int dccp_v4_connect(struct sock *sk, struct sockaddr *uaddr, | 296 | extern int dccp_v4_connect(struct sock *sk, struct sockaddr *uaddr, |
297 | int addr_len); | 297 | int addr_len); |
298 | 298 | ||
299 | extern struct sk_buff *dccp_ctl_make_reset(struct socket *ctl, | 299 | extern struct sk_buff *dccp_ctl_make_reset(struct sock *sk, |
300 | struct sk_buff *skb); | 300 | struct sk_buff *skb); |
301 | extern int dccp_send_reset(struct sock *sk, enum dccp_reset_codes code); | 301 | extern int dccp_send_reset(struct sock *sk, enum dccp_reset_codes code); |
302 | extern void dccp_send_close(struct sock *sk, const int active); | 302 | extern void dccp_send_close(struct sock *sk, const int active); |