aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/net/sctp/sctp.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/include/net/sctp/sctp.h b/include/net/sctp/sctp.h
index b2c2366676a7..0037e28e80e5 100644
--- a/include/net/sctp/sctp.h
+++ b/include/net/sctp/sctp.h
@@ -285,20 +285,21 @@ do { \
285 pr_cont(fmt, ##args); \ 285 pr_cont(fmt, ##args); \
286} while (0) 286} while (0)
287#define SCTP_DEBUG_PRINTK_IPADDR(fmt_lead, fmt_trail, \ 287#define SCTP_DEBUG_PRINTK_IPADDR(fmt_lead, fmt_trail, \
288 args_lead, saddr, args_trail...) \ 288 args_lead, addr, args_trail...) \
289do { \ 289do { \
290 const union sctp_addr *_addr = (addr); \
290 if (sctp_debug_flag) { \ 291 if (sctp_debug_flag) { \
291 if (saddr->sa.sa_family == AF_INET6) { \ 292 if (_addr->sa.sa_family == AF_INET6) { \
292 printk(KERN_DEBUG \ 293 printk(KERN_DEBUG \
293 pr_fmt(fmt_lead "%pI6" fmt_trail), \ 294 pr_fmt(fmt_lead "%pI6" fmt_trail), \
294 args_lead, \ 295 args_lead, \
295 &saddr->v6.sin6_addr, \ 296 &_addr->v6.sin6_addr, \
296 args_trail); \ 297 args_trail); \
297 } else { \ 298 } else { \
298 printk(KERN_DEBUG \ 299 printk(KERN_DEBUG \
299 pr_fmt(fmt_lead "%pI4" fmt_trail), \ 300 pr_fmt(fmt_lead "%pI4" fmt_trail), \
300 args_lead, \ 301 args_lead, \
301 &saddr->v4.sin_addr.s_addr, \ 302 &_addr->v4.sin_addr.s_addr, \
302 args_trail); \ 303 args_trail); \
303 } \ 304 } \
304 } \ 305 } \