Joe Perches
2010-Jan-06 01:20 UTC
[Ocfs2-devel] [PATCH 0/8] Remove most uses of NIPQUAD and NIPQUAD_FMT
Convert them to the %pI4 format extension where possible Only a couple uses are left in netfilter. Joe Perches (8): drivers/scsi: Remove uses of NIPQUAD, use %pI4 drivers/staging/pohmelfs/inode.c: Remove uses of NIPQUAD, use %pI4 net/rds: Remove uses of NIPQUAD, use %pI4 net/sunrpc: Remove uses of NIPQUAD, use %pI4 net/ipv4/netfilter/nf_nat_ftp.c: Convert NIPQUAD to %pI4 net/netfilter/ipvs/ip_vs_ftp.c: Use standardized format in sprintf fs/ocfs2/cluster/tcp.c: Remove use of NIPQUAD, use %pI4 drivers/firmware/iscsi_ibft.c: Remove NIPQUAD_FMT, use %pI4 drivers/firmware/iscsi_ibft.c | 8 +++----- drivers/scsi/bnx2i/bnx2i_iscsi.c | 4 ++-- drivers/scsi/cxgb3i/cxgb3i_iscsi.c | 5 ++--- drivers/scsi/cxgb3i/cxgb3i_offload.c | 7 ++++--- drivers/staging/pohmelfs/inode.c | 3 +-- fs/ocfs2/cluster/tcp.c | 4 ++-- net/ipv4/netfilter/nf_nat_ftp.c | 2 +- net/netfilter/ipvs/ip_vs_ftp.c | 2 +- net/rds/tcp_connect.c | 7 +++---- net/rds/tcp_listen.c | 6 +++--- net/rds/tcp_send.c | 4 ++-- net/sunrpc/xprtrdma/transport.c | 3 +-- net/sunrpc/xprtsock.c | 5 ++--- 13 files changed, 27 insertions(+), 33 deletions(-)
Joe Perches
2010-Jan-06 01:20 UTC
[Ocfs2-devel] [PATCH 7/8] fs/ocfs2/cluster/tcp.c: Remove use of NIPQUAD, use %pI4
Signed-off-by: Joe Perches <joe at perches.com> --- fs/ocfs2/cluster/tcp.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/ocfs2/cluster/tcp.c b/fs/ocfs2/cluster/tcp.c index 334f231..7a9620e 100644 --- a/fs/ocfs2/cluster/tcp.c +++ b/fs/ocfs2/cluster/tcp.c @@ -72,9 +72,9 @@ #include "tcp_internal.h" -#define SC_NODEF_FMT "node %s (num %u) at %u.%u.%u.%u:%u" +#define SC_NODEF_FMT "node %s (num %u) at %pI4:%u" #define SC_NODEF_ARGS(sc) sc->sc_node->nd_name, sc->sc_node->nd_num, \ - NIPQUAD(sc->sc_node->nd_ipv4_address), \ + &sc->sc_node->nd_ipv4_address, \ ntohs(sc->sc_node->nd_ipv4_port) /* -- 1.6.6.rc0.57.gad7a
Joel Becker
2010-Jan-07 01:51 UTC
[Ocfs2-devel] [PATCH 7/8] fs/ocfs2/cluster/tcp.c: Remove use of NIPQUAD, use %pI4
On Tue, Jan 05, 2010 at 05:20:19PM -0800, Joe Perches wrote:> Signed-off-by: Joe Perches <joe at perches.com>Acked-by: Joel Becker <joel.becker at oracle.com> -- The Graham Corollary: The longer a socially-moderated news website exists, the probability of an old Paul Graham link appearing at the top approaches certainty. Joel Becker Principal Software Developer Oracle E-mail: joel.becker at oracle.com Phone: (650) 506-8127