Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ed8db18d authored by Fabio Estevam's avatar Fabio Estevam Committed by David S. Miller
Browse files

mellanox: mlxsw: Use '%zx' to print size_t format



Use '%zx' to print size_t format in order to fix the following build warning:

drivers/net/ethernet/mellanox/mlxsw/item.h:65:3: warning: format '%lx' expects argument of type 'long unsigned int', but argument 6 has type 'size_t' [-Wformat=]

Signed-off-by: default avatarFabio Estevam <fabio.estevam@freescale.com>
Acked-by: default avatarJiri Pirko <jiri@mellanox.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent bec7a630
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -62,7 +62,7 @@ __mlxsw_item_offset(struct mlxsw_item *item, unsigned short index,
	if (item->offset % typesize != 0 ||
	if (item->offset % typesize != 0 ||
	    item->step % typesize != 0 ||
	    item->step % typesize != 0 ||
	    item->in_step_offset % typesize != 0) {
	    item->in_step_offset % typesize != 0) {
		pr_err("mlxsw: item bug (name=%s,offset=%x,step=%x,in_step_offset=%x,typesize=%lx)\n",
		pr_err("mlxsw: item bug (name=%s,offset=%x,step=%x,in_step_offset=%x,typesize=%zx)\n",
		       item->name, item->offset, item->step,
		       item->name, item->offset, item->step,
		       item->in_step_offset, typesize);
		       item->in_step_offset, typesize);
		BUG();
		BUG();