]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Fix printk format warning
authorOlof Johansson <olof@lixom.net>
Fri, 20 Dec 2019 00:15:17 +0000 (16:15 -0800)
committerSaeed Mahameed <saeedm@mellanox.com>
Thu, 23 Jan 2020 06:28:20 +0000 (22:28 -0800)
commit431c32c03074525f4367691c1386b300d1ae9176
tree3c375bddfd42c4312bbcdc024320013937effecd
parentc97c3259e5867a843f1c4a150b59e5fa7eaeb952
net/mlx5e: Fix printk format warning

Use "%zu" for size_t. Seen on ARM allmodconfig:

drivers/net/ethernet/mellanox/mlx5/core/wq.c: In function 'mlx5_wq_cyc_wqe_dump':
include/linux/kern_levels.h:5:18: warning: format '%ld' expects argument of type 'long int', but argument 5 has type 'size_t' {aka 'unsigned int'} [-Wformat=]

Fixes: 2a06cd893160 ("net/mlx5e: TX, Dump WQs wqe descriptors on CQE with error events")
Signed-off-by: Olof Johansson <olof@lixom.net>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/wq.c