From 24fd15ae3a1b621e53013a915acb4bab3d55e21b Mon Sep 17 00:00:00 2001 From: YOSHIFUJI Hideaki Date: Tue, 26 Apr 2011 19:23:24 +0900 Subject: [PATCH] --- yaml --- r: 255329 b: refs/heads/master c: 3ced2dddf10f26f0aaff96f3345a3d876cea62f8 h: refs/heads/master i: 255327: 2b75d66e8cf6b029fc4d58d03e91c80bc88d1b3f v: v3 --- [refs] | 2 +- trunk/include/net/sctp/sctp.h | 9 +++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/[refs] b/[refs] index 5df66a056355..29fbeb49165f 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: b1364104e37c9d8cf437746ba5f5dfedcc0bc132 +refs/heads/master: 3ced2dddf10f26f0aaff96f3345a3d876cea62f8 diff --git a/trunk/include/net/sctp/sctp.h b/trunk/include/net/sctp/sctp.h index b2c2366676a7..0037e28e80e5 100644 --- a/trunk/include/net/sctp/sctp.h +++ b/trunk/include/net/sctp/sctp.h @@ -285,20 +285,21 @@ do { \ pr_cont(fmt, ##args); \ } while (0) #define SCTP_DEBUG_PRINTK_IPADDR(fmt_lead, fmt_trail, \ - args_lead, saddr, args_trail...) \ + args_lead, addr, args_trail...) \ do { \ + const union sctp_addr *_addr = (addr); \ if (sctp_debug_flag) { \ - if (saddr->sa.sa_family == AF_INET6) { \ + if (_addr->sa.sa_family == AF_INET6) { \ printk(KERN_DEBUG \ pr_fmt(fmt_lead "%pI6" fmt_trail), \ args_lead, \ - &saddr->v6.sin6_addr, \ + &_addr->v6.sin6_addr, \ args_trail); \ } else { \ printk(KERN_DEBUG \ pr_fmt(fmt_lead "%pI4" fmt_trail), \ args_lead, \ - &saddr->v4.sin_addr.s_addr, \ + &_addr->v4.sin_addr.s_addr, \ args_trail); \ } \ } \