net/mlx5e: Fix build break on 32bit
authorSaeed Mahameed <saeedm@nvidia.com>
Tue, 28 Mar 2023 20:07:23 +0000 (13:07 -0700)
committerJakub Kicinski <kuba@kernel.org>
Tue, 28 Mar 2023 23:18:59 +0000 (16:18 -0700)
commit163c2c7059178898ad7512294ca3a768df2c1515
treeecf1661f43b902f968e0a753661f3463b6ea265b
parent86e2eca4ddedc07d639c44c990e1c220cac3741e
net/mlx5e: Fix build break on 32bit

The cited commit caused the following build break in mlx5 due to a change
in size of MAX_SKB_FRAGS.

error: format '%lu' expects argument of type 'long unsigned int',
       but argument 7 has type 'unsigned int' [-Werror=format=]

Fix this by explicit casting.

Fixes: 3948b05950fd ("net: introduce a config option to tweak MAX_SKB_FRAGS")
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Link: https://lore.kernel.org/r/20230328200723.125122-1-saeed@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mellanox/mlx5/core/en_main.c