diff options
Diffstat (limited to 'net/xfrm/xfrm_policy.c')
-rw-r--r-- | net/xfrm/xfrm_policy.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/net/xfrm/xfrm_policy.c b/net/xfrm/xfrm_policy.c index f072598c8d68..fe596c6ef353 100644 --- a/net/xfrm/xfrm_policy.c +++ b/net/xfrm/xfrm_policy.c | |||
@@ -2455,13 +2455,11 @@ static void xfrm_audit_common_policyinfo(struct xfrm_policy *xp, | |||
2455 | 2455 | ||
2456 | switch(sel->family) { | 2456 | switch(sel->family) { |
2457 | case AF_INET: | 2457 | case AF_INET: |
2458 | audit_log_format(audit_buf, " src=" NIPQUAD_FMT, | 2458 | audit_log_format(audit_buf, " src=%pI4", &sel->saddr.a4); |
2459 | NIPQUAD(sel->saddr.a4)); | ||
2460 | if (sel->prefixlen_s != 32) | 2459 | if (sel->prefixlen_s != 32) |
2461 | audit_log_format(audit_buf, " src_prefixlen=%d", | 2460 | audit_log_format(audit_buf, " src_prefixlen=%d", |
2462 | sel->prefixlen_s); | 2461 | sel->prefixlen_s); |
2463 | audit_log_format(audit_buf, " dst=" NIPQUAD_FMT, | 2462 | audit_log_format(audit_buf, " dst=%pI4", &sel->daddr.a4); |
2464 | NIPQUAD(sel->daddr.a4)); | ||
2465 | if (sel->prefixlen_d != 32) | 2463 | if (sel->prefixlen_d != 32) |
2466 | audit_log_format(audit_buf, " dst_prefixlen=%d", | 2464 | audit_log_format(audit_buf, " dst_prefixlen=%d", |
2467 | sel->prefixlen_d); | 2465 | sel->prefixlen_d); |