From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 1F850A0A0A; Thu, 6 May 2021 04:56:44 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B0D98410F2; Thu, 6 May 2021 04:56:43 +0200 (CEST) Received: from mail-pj1-f49.google.com (mail-pj1-f49.google.com [209.85.216.49]) by mails.dpdk.org (Postfix) with ESMTP id 8965640040 for ; Thu, 6 May 2021 04:56:42 +0200 (CEST) Received: by mail-pj1-f49.google.com with SMTP id fa21-20020a17090af0d5b0290157eb6b590fso2668147pjb.5 for ; Wed, 05 May 2021 19:56:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Uqhe2ecAtEBjH41xxXERJKGsLSj3/1MA8bAlBdzidzQ=; b=Vx5vjyzc6LVTMPiOZ7hr38a3yOaGa5KkCbKsXm9VpuxmSbCvsE/0uE4dd1WNYUSPPf qfaHkHVBTwuVKR0wqlTshucEdL9Vyg9HdJd0zrokfUDmSvR+1soPg/lnaRGeIUm4mmhS xdH2KTHAa55zaCbFnVxdeE7Vr51PwDfC0EIFirN1antIsInE6mQ6p013gxYn4EfkoBNW bEoIN96DgR7404rNOiF6B/zCc0HuhtdJJHicJy7C31ot9X5647GXPSkpaANgTbipcSxX /vP5IFPPlAOiLm0IC2KqZClaCJoJU7R7+DX7fQXKl2lRmr0kQ7psUV44fZXbOkBqQWY3 aqwA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Uqhe2ecAtEBjH41xxXERJKGsLSj3/1MA8bAlBdzidzQ=; b=D5G8gUeTEb0DvourC7kqJUNbEx+nz4pyPDhOhaA5QnQRUlrjaKftFZ3AbllwUngMNP V2ni2PINU287bDblPeSAVBIbncL7eqL6DJCObsoW2lH3z5o+btbIN+kNTsX552qatUfD L0sULVR+KvyYup2hxX9zOCsukvFpw4ZQX0lBNHgAXL+OVCvT3fK8pz976A5snSeHp/Iq rGkL1rUeSzEip4M12GaHY0i0vCgJXzuLW9XfwkpWn62d/wSwreKBYsj3PqbVQ5xARER0 Vyj3gb2BPOHLXBaJwQpIRx/m+UYA/dZsPwnZ4fWgvm/ivPOhUe8EcwrUZkBycjN5MCnW RFBg== X-Gm-Message-State: AOAM531JSPr/SJ4oQiPcxZT61b/P1nzf57RmDJNIXRD2J3yyvjmGFwL5 3XxeEb75Q8r6HZlIWi5rs+kwnA== X-Google-Smtp-Source: ABdhPJxKBoKgBPxgRAwuNmhUp9G3D66hmhtkXEdaW3EODfLWEGypayHz9l7Cj4k0MU6dnJ89xwzmpg== X-Received: by 2002:a17:90a:4615:: with SMTP id w21mr2019966pjg.50.1620269801741; Wed, 05 May 2021 19:56:41 -0700 (PDT) Received: from hermes.local (76-14-218-44.or.wavecable.com. [76.14.218.44]) by smtp.gmail.com with ESMTPSA id x10sm533858pjq.53.2021.05.05.19.56.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 May 2021 19:56:41 -0700 (PDT) Date: Wed, 5 May 2021 19:56:12 -0700 From: Stephen Hemminger To: Dmitry Kozlyuk Cc: dev@dpdk.org, stable@dpdk.org, Tyler Retzlaff , Bruce Richardson , John McNamara Message-ID: <20210505195612.347322b4@hermes.local> In-Reply-To: <20210505215435.22336-1-dmitry.kozliuk@gmail.com> References: <20210505215133.21818-1-dmitry.kozliuk@gmail.com> <20210505215435.22336-1-dmitry.kozliuk@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [PATCH v3] examples/rxtx_callbacks: fix port ID format specifier X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On Thu, 6 May 2021 00:54:35 +0300 Dmitry Kozlyuk wrote: > This fixes -Wformat warning with clang 10.0.0 on Windows. > > Fixes: f8244c6399d9 ("ethdev: increase port id range") > Cc: stable@dpdk.org > > Signed-off-by: Dmitry Kozlyuk > Acked-by: Tyler Retzlaff > --- > v3: PRIx16 -> PRIu16 > v2: u% and a cast -> PRIx16 (Tyler, Thomas) > examples/rxtx_callbacks/main.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/examples/rxtx_callbacks/main.c b/examples/rxtx_callbacks/main.c > index b57b2fc6bc..192521c3c6 100644 > --- a/examples/rxtx_callbacks/main.c > +++ b/examples/rxtx_callbacks/main.c > @@ -329,7 +329,7 @@ main(int argc, char *argv[]) > /* initialize all ports */ > RTE_ETH_FOREACH_DEV(portid) > if (port_init(portid, mbuf_pool) != 0) > - rte_exit(EXIT_FAILURE, "Cannot init port %"PRIu8"\n", > + rte_exit(EXIT_FAILURE, "Cannot init port %"PRIu16"\n", > portid) Ok, that matches what is used in rte_ethdev.h Acked-by: Stephen Hemminger