Caught by code review, port_id is a uint16_t.

Fixes: 20c78ac9ee23 ("examples/vm_power_mgr: add port initialisation")
Cc: [email protected]

Signed-off-by: David Marchand <[email protected]>
---
 examples/vm_power_manager/main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/examples/vm_power_manager/main.c b/examples/vm_power_manager/main.c
index c141382020..ae9b326f4a 100644
--- a/examples/vm_power_manager/main.c
+++ b/examples/vm_power_manager/main.c
@@ -382,7 +382,7 @@ main(int argc, char **argv)
 
                        if (port_init(portid, mbuf_pool) != 0)
                                rte_exit(EXIT_FAILURE,
-                                       "Cannot init port %"PRIu8 "\n",
+                                       "Cannot init port %"PRIu16 "\n",
                                        portid);
 
                        for (w = 0; w < RTE_POWER_MAX_VFS; w++) {
-- 
2.53.0

Reply via email to