public inbox for dev@dpdk.org
 help / color / mirror / Atom feed
From: David Marchand <david.marchand@redhat.com>
To: dev@dpdk.org
Cc: ajp@marvell.com, stable@dpdk.org,
	Anatoly Burakov <anatoly.burakov@intel.com>,
	Sivaprasad Tummala <sivaprasad.tummala@amd.com>,
	Konstantin Ananyev <konstantin.ananyev@huawei.com>,
	Santosh Shukla <santosh.shukla@caviumnetworks.com>,
	Nemanja Marjanovic <nemanja.marjanovic@intel.com>,
	David Hunt <david.hunt@intel.com>
Subject: [PATCH] examples/vm_power_manager: fix format specifier for port ID
Date: Fri, 27 Mar 2026 09:06:59 +0100	[thread overview]
Message-ID: <20260327080659.3250395-1-david.marchand@redhat.com> (raw)

Caught by code review, port_id is a uint16_t.

Fixes: 20c78ac9ee23 ("examples/vm_power_mgr: add port initialisation")
Cc: stable@dpdk.org

Signed-off-by: David Marchand <david.marchand@redhat.com>
---
 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	other threads:[~2026-03-27  8:07 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-03-27  8:06 David Marchand [this message]
2026-03-27  8:23 ` [PATCH] examples/vm_power_manager: fix format specifier for port ID David Marchand

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260327080659.3250395-1-david.marchand@redhat.com \
    --to=david.marchand@redhat.com \
    --cc=ajp@marvell.com \
    --cc=anatoly.burakov@intel.com \
    --cc=david.hunt@intel.com \
    --cc=dev@dpdk.org \
    --cc=konstantin.ananyev@huawei.com \
    --cc=nemanja.marjanovic@intel.com \
    --cc=santosh.shukla@caviumnetworks.com \
    --cc=sivaprasad.tummala@amd.com \
    --cc=stable@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox