net/mlx5: fix 32-bit build
authorAli Alnubani <alialnu@mellanox.com>
Thu, 27 Jun 2019 15:10:07 +0000 (18:10 +0300)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 28 Jun 2019 18:31:49 +0000 (20:31 +0200)
commit843e720557105750d5152f3a414655ab87fb856c
tree380b87373fb91f4285ad516dff91b8ae03a307ee
parent6bf0912011eed76285a6acf2ddb9b126008b6339
net/mlx5: fix 32-bit build

This is to fix the error:
  ```
  drivers/net/mlx5/mlx5_defs.h:14:26:
  error: format '%lx' expects argument of type 'long unsigned int',
  but argument 5 has type 'off_t {aka long long int}' [-Werror=format=]
  drivers/net/mlx5/mlx5_txq.c:569:48: note: format string is defined here
     DRV_LOG(DEBUG, "port %u: uar_mmap_offset 0x%lx"
                                                ~~^
                                                %llx
  ```
Which reproduces with gcc (Ubuntu 7.4.0-1ubuntu1~18.04.1) 7.4.0.

Fixes: 6bf10ab69be0 ("net/mlx5: support 32-bit systems")
Cc: stable@dpdk.org
Signed-off-by: Ali Alnubani <alialnu@mellanox.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
drivers/net/mlx5/mlx5_txq.c