DPDK patches and discussions
 help / color / mirror / Atom feed
From: Chengwen Feng <fengchengwen@huawei.com>
To: <thomas@monjalon.net>, <stephen@networkplumber.org>
Cc: <dev@dpdk.org>, <reshma.pattan@intel.com>
Subject: [PATCH] app/procinfo: fix warning of deprecated coremask
Date: Tue, 28 Oct 2025 16:17:33 +0800	[thread overview]
Message-ID: <20251028081733.38583-1-fengchengwen@huawei.com> (raw)

When launch proc-info:
  EAL: '-c <coremask>' option is deprecated, and will be removed in a future release
  EAL: 	Use '-l <corelist>' or '--lcores=<corelist>' option instead

This commit fix it by use -l0 other than -c1.

Signed-off-by: Chengwen Feng <fengchengwen@huawei.com>
---
 app/proc-info/main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app/proc-info/main.c b/app/proc-info/main.c
index 1b9979b7c8..b09c03ab35 100644
--- a/app/proc-info/main.c
+++ b/app/proc-info/main.c
@@ -2121,7 +2121,7 @@ main(int argc, char **argv)
 {
 	int ret;
 	int i;
-	char c_flag[] = "-c1";
+	char c_flag[] = "-l0";
 	char n_flag[] = "-n4";
 	char mp_flag[] = "--proc-type=secondary";
 	char log_flag[] = "--log-level=6";
-- 
2.17.1


             reply	other threads:[~2025-10-28  8:17 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-10-28  8:17 Chengwen Feng [this message]
2025-10-28 10:11 ` Bruce Richardson

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=20251028081733.38583-1-fengchengwen@huawei.com \
    --to=fengchengwen@huawei.com \
    --cc=dev@dpdk.org \
    --cc=reshma.pattan@intel.com \
    --cc=stephen@networkplumber.org \
    --cc=thomas@monjalon.net \
    /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;
as well as URLs for NNTP newsgroup(s).