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 7E630A0A02; Wed, 5 May 2021 23:54:45 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 011E240040; Wed, 5 May 2021 23:54:45 +0200 (CEST) Received: from mail-lj1-f174.google.com (mail-lj1-f174.google.com [209.85.208.174]) by mails.dpdk.org (Postfix) with ESMTP id 887F04003C; Wed, 5 May 2021 23:54:44 +0200 (CEST) Received: by mail-lj1-f174.google.com with SMTP id b21so4396207ljf.11; Wed, 05 May 2021 14:54:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=J5+dHd//gndZsbdxAvZax/asU7KbG8nnV53/gmauqhw=; b=Vy4drRG979ye8VSaRrTJWBNYrtSsSX3s4GdwtOtUCKhbFInyyPm8d89/S2ek02QSps o5B6C05JCCaQm83HSFzq2QpJ6aflc+YVN/HALeycXjMfTXAPM02hlYO+8kIkTICXllXp 2L3wx2nECndT8PdEbUC+sMeEa3KNa4HikDbt1iVoN9KFOQxvKBN2yg6nvnVy2yP/UIoO KCJ9YRIc6e5vSSz78gZw11vh1EIE1+2IozjxLcC5hsmvcNc6zQYR4Ue/gL0lirBIyNIN UD4cPQ7bL0hy1kN7rcWzUREBGA48AScSpBJEf/rprE34a0GFvI97D3CNb6zKpeXenXOi Cw1g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=J5+dHd//gndZsbdxAvZax/asU7KbG8nnV53/gmauqhw=; b=BaNeO3XWwt8Vsb/MtSuBoEG0tIJK2OgiYRNfM3L70uY4Sgr5Yr/OTqVqBgmwhWd5Aa 6Y0+p+UmkVDCPZyZWW8EEJRuj3DjK31IG1eVJ75FCxfp2pCaQPtbp2CW4XYOHf5iejQD YqLc7tG7Jokowlf6VahtEnv8OOmU/41J1q2P9B99r69vVwSdZAG1pNwyUy1Zq0s76pgj t678XxfBpSalCK1UftA0cQEDI7aieuYVGfA4Z5itiV/uORqjT8ewqGDhjSwJvQaqA5E5 g9d9itWhwztqRguMC0dswRj9vokpFyjTuw1a6Ef1NxM+9q3fOQgvwWz+CCBCLwe+utIS 5LAg== X-Gm-Message-State: AOAM531kjLHptJgaIMJ1mMhYghtqcouGlsT6V1EkCfHBulvW9/QtIhD4 nsdhyiADXMMlbn9j9OGvA1S78E4WZrbBIA== X-Google-Smtp-Source: ABdhPJwqj5CKRnQIBFoF5e1NtoEeZxfrQep++Qlxll5A2z64EkXL+a5DjcL7NoNLfPwKCHxWfvcGuA== X-Received: by 2002:a2e:8891:: with SMTP id k17mr689688lji.11.1620251683934; Wed, 05 May 2021 14:54:43 -0700 (PDT) Received: from localhost.localdomain (broadband-37-110-65-23.ip.moscow.rt.ru. [37.110.65.23]) by smtp.gmail.com with ESMTPSA id q2sm157285ljc.130.2021.05.05.14.54.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 May 2021 14:54:43 -0700 (PDT) From: Dmitry Kozlyuk To: dev@dpdk.org Cc: Dmitry Kozlyuk , stable@dpdk.org, Tyler Retzlaff , Bruce Richardson , John McNamara Date: Thu, 6 May 2021 00:54:35 +0300 Message-Id: <20210505215435.22336-1-dmitry.kozliuk@gmail.com> X-Mailer: git-send-email 2.29.3 In-Reply-To: <20210505215133.21818-1-dmitry.kozliuk@gmail.com> References: <20210505215133.21818-1-dmitry.kozliuk@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [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" 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); if (rte_lcore_count() > 1) -- 2.29.3