diff options
author | Harvey Harrison <harvey.harrison@gmail.com> | 2008-10-31 03:56:49 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-10-31 03:56:49 -0400 |
commit | 3685f25de1b0447fff381c420de1e25bd57c9efb (patch) | |
tree | 90a5d87c0ced1b27f654606d50a9ff13ded6f862 /security/selinux/avc.c | |
parent | be859405487324ed548f1ba11dc949b8230ab991 (diff) |
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/selinux/avc.c')
-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, | |||
504 | __be16 port, char *name1, char *name2) | 504 | __be16 port, char *name1, char *name2) |
505 | { | 505 | { |
506 | if (addr) | 506 | if (addr) |
507 | audit_log_format(ab, " %s=" NIPQUAD_FMT, name1, NIPQUAD(addr)); | 507 | audit_log_format(ab, " %s=%pI4", name1, &addr); |
508 | if (port) | 508 | if (port) |
509 | audit_log_format(ab, " %s=%d", name2, ntohs(port)); | 509 | audit_log_format(ab, " %s=%d", name2, ntohs(port)); |
510 | } | 510 | } |