Commit bf1099b5 authored by Jacob Keller's avatar Jacob Keller Committed by Jeff Kirsher

i40e: use %pI4b instead of byte swapping before dev_err

Fix warnings regarding restricted __be32 type usage by strictly
specifying the type of the ipv4 address being printed in the dev_err
statement.
Signed-off-by: default avatarJacob Keller <jacob.e.keller@intel.com>
Tested-by: default avatarAndrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: default avatarJeff Kirsher <jeffrey.t.kirsher@intel.com>
parent d0fda04d
...@@ -7213,8 +7213,7 @@ static int i40e_parse_cls_flower(struct i40e_vsi *vsi, ...@@ -7213,8 +7213,7 @@ static int i40e_parse_cls_flower(struct i40e_vsi *vsi,
if (mask->dst == cpu_to_be32(0xffffffff)) { if (mask->dst == cpu_to_be32(0xffffffff)) {
field_flags |= I40E_CLOUD_FIELD_IIP; field_flags |= I40E_CLOUD_FIELD_IIP;
} else { } else {
mask->dst = be32_to_cpu(mask->dst); dev_err(&pf->pdev->dev, "Bad ip dst mask %pI4b\n",
dev_err(&pf->pdev->dev, "Bad ip dst mask %pI4\n",
&mask->dst); &mask->dst);
return I40E_ERR_CONFIG; return I40E_ERR_CONFIG;
} }
...@@ -7224,8 +7223,7 @@ static int i40e_parse_cls_flower(struct i40e_vsi *vsi, ...@@ -7224,8 +7223,7 @@ static int i40e_parse_cls_flower(struct i40e_vsi *vsi,
if (mask->src == cpu_to_be32(0xffffffff)) { if (mask->src == cpu_to_be32(0xffffffff)) {
field_flags |= I40E_CLOUD_FIELD_IIP; field_flags |= I40E_CLOUD_FIELD_IIP;
} else { } else {
mask->src = be32_to_cpu(mask->src); dev_err(&pf->pdev->dev, "Bad ip src mask %pI4b\n",
dev_err(&pf->pdev->dev, "Bad ip src mask %pI4\n",
&mask->src); &mask->src);
return I40E_ERR_CONFIG; return I40E_ERR_CONFIG;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment