diff --git a/net/core/filter.c b/net/core/filter.c index 5f24a6b82802413cc4721e06fafc43cf8bbba9fb..0730395918e0fd9325132f8f43a9de764ea40cb5 100644 --- a/net/core/filter.c +++ b/net/core/filter.c @@ -5528,9 +5528,9 @@ void bpf_warn_invalid_xdp_action(u32 act) { const u32 act_max = XDP_REDIRECT; - WARN_ONCE(1, "%s XDP return value %u, expect packet loss!\n", - act > act_max ? "Illegal" : "Driver unsupported", - act); + pr_warn_once("%s XDP return value %u, expect packet loss!\n", + act > act_max ? "Illegal" : "Driver unsupported", + act); } EXPORT_SYMBOL_GPL(bpf_warn_invalid_xdp_action);