aboutsummaryrefslogtreecommitdiffstats
path: root/security/selinux/avc.c
diff options
context:
space:
mode:
Diffstat (limited to 'security/selinux/avc.c')
-rw-r--r--security/selinux/avc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/security/selinux/avc.c b/security/selinux/avc.c
index cb30c7e350b3..d43bd6baeeaa 100644
--- a/security/selinux/avc.c
+++ b/security/selinux/avc.c
@@ -495,7 +495,7 @@ static inline void avc_print_ipv6_addr(struct audit_buffer *ab,
495 char *name1, char *name2) 495 char *name1, char *name2)
496{ 496{
497 if (!ipv6_addr_any(addr)) 497 if (!ipv6_addr_any(addr))
498 audit_log_format(ab, " %s=" NIP6_FMT, name1, NIP6(*addr)); 498 audit_log_format(ab, " %s=%pI6", name1, addr);
499 if (port) 499 if (port)
500 audit_log_format(ab, " %s=%d", name2, ntohs(port)); 500 audit_log_format(ab, " %s=%d", name2, ntohs(port));
501} 501}
@@ -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}