summaryrefslogtreecommitdiff
path: root/app/pdump
diff options
context:
space:
mode:
authorZhiyong Yang <zhiyong.yang@intel.com>2017-10-12 17:32:50 +0800
committerFerruh Yigit <ferruh.yigit@intel.com>2017-10-13 01:17:49 +0100
commitbcfa5579bc4d8b184987feeae8eae7d0adfc5f18 (patch)
tree733f448b71bdfdd93ca8119050e1deaa8778e2cf /app/pdump
parent6e8b40b36c9d704cbe0b8d9445fe15fb12f9a4f4 (diff)
downloaddpdk-bcfa5579bc4d8b184987feeae8eae7d0adfc5f18.zip
dpdk-bcfa5579bc4d8b184987feeae8eae7d0adfc5f18.tar.gz
dpdk-bcfa5579bc4d8b184987feeae8eae7d0adfc5f18.tar.xz
app/pdump: fix port id type
Increase port id range to 16 bits and remove the unnecessary cast. Fixes: f8244c6399d9 ("ethdev: increase port id range") Signed-off-by: Zhiyong Yang <zhiyong.yang@intel.com>
Diffstat (limited to 'app/pdump')
-rw-r--r--app/pdump/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/pdump/main.c b/app/pdump/main.c
index 090a50c..3d8e502 100644
--- a/app/pdump/main.c
+++ b/app/pdump/main.c
@@ -579,7 +579,7 @@ signal_handler(int sig_num)
}
static inline int
-configure_vdev(uint8_t port_id)
+configure_vdev(uint16_t port_id)
{
struct ether_addr addr;
const uint16_t rxRings = 0, txRings = 1;
@@ -609,7 +609,7 @@ configure_vdev(uint8_t port_id)
rte_eth_macaddr_get(port_id, &addr);
printf("Port %u MAC: %02"PRIx8" %02"PRIx8" %02"PRIx8
" %02"PRIx8" %02"PRIx8" %02"PRIx8"\n",
- (unsigned)port_id,
+ port_id,
addr.addr_bytes[0], addr.addr_bytes[1],
addr.addr_bytes[2], addr.addr_bytes[3],
addr.addr_bytes[4], addr.addr_bytes[5]);