All of lore.kernel.org
 help / color / mirror / Atom feed
From: Marat Khalili <marat.khalili@huawei.com>
To: Arin Kharkar <arinkharkar@gmail.com>, "dev@dpdk.org" <dev@dpdk.org>
Subject: RE: [PATCH] Updated skeleton example code to better emit error
Date: Wed, 13 May 2026 16:30:42 +0000	[thread overview]
Message-ID: <fc1544b27d75489fb7f3b95abbebc0a3@huawei.com> (raw)
In-Reply-To: <20260512192834.130651-1-arinkharkar@gmail.com>

> --- a/examples/skeleton/basicfwd.c
> +++ b/examples/skeleton/basicfwd.c
> @@ -188,11 +188,9 @@ main(int argc, char *argv[])
>  	/* Check that there is an even number of ports to send/receive on. */
>  	nb_ports = rte_eth_dev_count_avail();
>  	if (nb_ports < 2 || (nb_ports & 1))
> -		rte_exit(EXIT_FAILURE, "Error: number of ports must be even\n");
> +		rte_exit(EXIT_FAILURE, "Error: number of ports must be even, found %u ports\n", nb_ports);

Maybe "positive even"?

      reply	other threads:[~2026-05-13 16:30 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-05-12 19:28 [PATCH] Updated skeleton example code to better emit error Arin Kharkar
2026-05-13 16:30 ` Marat Khalili [this message]

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=fc1544b27d75489fb7f3b95abbebc0a3@huawei.com \
    --to=marat.khalili@huawei.com \
    --cc=arinkharkar@gmail.com \
    --cc=dev@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.