diff options
author | Harvey Harrison <harvey.harrison@gmail.com> | 2008-10-31 00:56:49 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-10-31 00:56:49 -0700 |
commit | 3685f25de1b0447fff381c420de1e25bd57c9efb (patch) | |
tree | 90a5d87c0ced1b27f654606d50a9ff13ded6f862 /security | |
parent | be859405487324ed548f1ba11dc949b8230ab991 (diff) | |
download | lwn-3685f25de1b0447fff381c420de1e25bd57c9efb.tar.gz lwn-3685f25de1b0447fff381c420de1e25bd57c9efb.zip |
misc: replace NIPQUAD()
Using NIPQUAD() with NIPQUAD_FMT, %d.%d.%d.%d or %u.%u.%u.%u
can be replaced with %pI4
Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'security')
-rw-r--r-- | security/selinux/avc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/security/selinux/avc.c b/security/selinux/avc.c index ed6af12cdf43..d43bd6baeeaa 100644 --- a/security/selinux/avc.c +++ b/security/selinux/avc.c @@ -504,7 +504,7 @@ static inline void avc_print_ipv4_addr(struct audit_buffer *ab, __be32 addr, __be16 port, char *name1, char *name2) { if (addr) - audit_log_format(ab, " %s=" NIPQUAD_FMT, name1, NIPQUAD(addr)); + audit_log_format(ab, " %s=%pI4", name1, &addr); if (port) audit_log_format(ab, " %s=%d", name2, ntohs(port)); } |