summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorHerakliusz Lipiec <herakliusz.lipiec@intel.com>2018-09-25 12:23:00 +0100
committerFerruh Yigit <ferruh.yigit@intel.com>2018-10-11 18:53:49 +0200
commitf431e0104df89aa9f53b20448530baec18f3d39a (patch)
tree442e11f8292421ada09e7d5bfce2f6bda0434697 /app
parentcf72ed09181bade3ce3286d7d7f1ee79d39a9b09 (diff)
downloaddpdk-f431e0104df89aa9f53b20448530baec18f3d39a.zip
dpdk-f431e0104df89aa9f53b20448530baec18f3d39a.tar.gz
dpdk-f431e0104df89aa9f53b20448530baec18f3d39a.tar.xz
app/testpmd: fix printf format in event callback
change PRIu8 -> PRIu16 for port_id in eth_event_callback (portid_t is uint16_t) Fixes: 76ad4a2d82d4 ("app/testpmd: add generic event handler") Cc: stable@dpdk.org Signed-off-by: Herakliusz Lipiec <herakliusz.lipiec@intel.com> Acked-by: Bernard Iremonger <bernard.iremonger@intel.com>
Diffstat (limited to 'app')
-rw-r--r--app/test-pmd/testpmd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/test-pmd/testpmd.c b/app/test-pmd/testpmd.c
index 5e0b245..8a50dde 100644
--- a/app/test-pmd/testpmd.c
+++ b/app/test-pmd/testpmd.c
@@ -2506,11 +2506,11 @@ eth_event_callback(portid_t port_id, enum rte_eth_event_type type, void *param,
RTE_SET_USED(ret_param);
if (type >= RTE_ETH_EVENT_MAX) {
- fprintf(stderr, "\nPort %" PRIu8 ": %s called upon invalid event %d\n",
+ fprintf(stderr, "\nPort %" PRIu16 ": %s called upon invalid event %d\n",
port_id, __func__, type);
fflush(stderr);
} else if (event_print_mask & (UINT32_C(1) << type)) {
- printf("\nPort %" PRIu8 ": %s event\n", port_id,
+ printf("\nPort %" PRIu16 ": %s event\n", port_id,
event_desc[type]);
fflush(stdout);
}