Commit 4f5747cf authored by Tom Seewald's avatar Tom Seewald Committed by Jason Gunthorpe

RDMA/mlx5: Fix -Wformat warning in check_ucmd_data()

Variables of type size_t should use %zu rather than %lu [1]. The variables
"inlen", "ucmd", "last", and "size" are all size_t, so use the correct
format specifiers.

[1] https://www.kernel.org/doc/html/latest/core-api/printk-formats.html

Fixes: e383085c ("RDMA/mlx5: Set ECE options during QP create")
Link: https://lore.kernel.org/r/20200605023012.9527-1-tseewald@gmail.comSigned-off-by: default avatarTom Seewald <tseewald@gmail.com>
Acked-by: default avatarLeon Romanovsky <leonro@mellanox.com>
Signed-off-by: default avatarJason Gunthorpe <jgg@mellanox.com>
parent 2ef56123
...@@ -2907,7 +2907,7 @@ static int check_ucmd_data(struct mlx5_ib_dev *dev, ...@@ -2907,7 +2907,7 @@ static int check_ucmd_data(struct mlx5_ib_dev *dev,
if (!ret) if (!ret)
mlx5_ib_dbg( mlx5_ib_dbg(
dev, dev,
"udata is not cleared, inlen = %lu, ucmd = %lu, last = %lu, size = %lu\n", "udata is not cleared, inlen = %zu, ucmd = %zu, last = %zu, size = %zu\n",
udata->inlen, params->ucmd_size, last, size); udata->inlen, params->ucmd_size, last, size);
return ret ? 0 : -EINVAL; return ret ? 0 : -EINVAL;
} }
......
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