git.droids-corp.org
/
dpdk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cf72ed0
)
app/testpmd: fix printf format in event callback
author
Herakliusz Lipiec
<herakliusz.lipiec@intel.com>
Tue, 25 Sep 2018 11:23:00 +0000
(12:23 +0100)
committer
Ferruh Yigit
<ferruh.yigit@intel.com>
Thu, 11 Oct 2018 16:53:49 +0000
(18:53 +0200)
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>
app/test-pmd/testpmd.c
patch
|
blob
|
history
diff --git
a/app/test-pmd/testpmd.c
b/app/test-pmd/testpmd.c
index
5e0b245
..
8a50dde
100644
(file)
--- 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 %" PRIu
8
": %s called upon invalid event %d\n",
+ fprintf(stderr, "\nPort %" PRIu
16
": %s called upon invalid event %d\n",
port_id, __func__, type);
fflush(stderr);
} else if (event_print_mask & (UINT32_C(1) << type)) {
- printf("\nPort %" PRIu
8
": %s event\n", port_id,
+ printf("\nPort %" PRIu
16
": %s event\n", port_id,
event_desc[type]);
fflush(stdout);
}