From patchwork Sun May 2 02:56:56 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Kozlyuk X-Patchwork-Id: 92622 X-Patchwork-Delegate: thomas@monjalon.net Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id EEE8CA0524; Sun, 2 May 2021 04:57:07 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4015A40692; Sun, 2 May 2021 04:57:07 +0200 (CEST) Received: from mail-lf1-f42.google.com (mail-lf1-f42.google.com [209.85.167.42]) by mails.dpdk.org (Postfix) with ESMTP id 97D5B4013F; Sun, 2 May 2021 04:57:05 +0200 (CEST) Received: by mail-lf1-f42.google.com with SMTP id n138so3046688lfa.3; Sat, 01 May 2021 19:57:05 -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:mime-version :content-transfer-encoding; bh=j+6OZYTxJiaRE5j5r0cluw4oINhUhYT5vtzHLKzbA5Y=; b=TSecsq3sb22oGZCTtomOC5jBIV4ZONBL1xKMI6G/T0+DxaJCX0kvv9ORqfkLXeDJH9 8s+n11YV2DcLGEULVvZzPkpcOeGppdWQ25Y+g57LbsAAyrq1chz9mZ39xpmKV3lNrsL8 9XHNsG4PydmuN+NG6GkalWdNuMpBgYZEqJ04l6epDgfAZQO04Kc0M6GvwR5GxWVo+sLa EJ5Q2LJgHFOFOY7KFNtiL0jsQ1pfLl2N+MOUFKnj9YJugHaP5cV85daJFyD6Wva0nVTS SmJG0rwZyD4oRCE7WgSCndBWStYXCK1oQNdMvvaGMbQ3sgV2SHx/AUKVDUk3e167HHXX hn6w== 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:mime-version :content-transfer-encoding; bh=j+6OZYTxJiaRE5j5r0cluw4oINhUhYT5vtzHLKzbA5Y=; b=FePuRnUgL+JKI/shV+JFLMavbFLsN3UswL7l2EGR5QfaYYeg5ruHq8YA9GxpA3sAMm RJ01o8nKvvw+hb/YqJqAD3v/qDhe2YFnBBcVu7uL8BlWjVhVzDAwu9gm6W6xpJczvp1A artm6zR72cLGQwsUg7pBarNtO+lRAedm4Sp97nOzWLjAUVYRd9O1W3L83VX41DLWn/I5 9a0FH/VYqdev7gStIcS6dbzT8GCKJu729bKEAS7tfLZWLjcvB/oNXVEeO9QnIf/BjBis K2BVr5NuBiJkKjlq3+G+cU8ELrWy652c/05huKq+wNTbPNVRMhzeXVDufto5w78lt688 vtDw== X-Gm-Message-State: AOAM532kA0W0o3yT5tBYyKEyw/f8yZ0pPhCfsnpVRMlBUuUgcpwecu3n i4JbAaI8fr2eMo+YuX2/7vRBw5ePjf982A== X-Google-Smtp-Source: ABdhPJyyQ8W+N1MjdAFWIg1jCVV59jO9O5w9vM+vmGntKcKilXgm+9rTTDiIopESIE8Odj1Eq+TuSQ== X-Received: by 2002:a05:6512:48c:: with SMTP id v12mr8487330lfq.132.1619924224956; Sat, 01 May 2021 19:57:04 -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 p4sm717018lfa.155.2021.05.01.19.57.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 01 May 2021 19:57:04 -0700 (PDT) From: Dmitry Kozlyuk To: dev@dpdk.org Cc: Dmitry Kozlyuk , stable@dpdk.org, Bruce Richardson , John McNamara Date: Sun, 2 May 2021 05:56:56 +0300 Message-Id: <20210502025656.29910-1-dmitry.kozliuk@gmail.com> X-Mailer: git-send-email 2.29.3 MIME-Version: 1.0 Subject: [dpdk-dev] [PATCH] 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" Use "%u" and a cast as in other places when port ID is formatted. 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 --- examples/rxtx_callbacks/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/rxtx_callbacks/main.c b/examples/rxtx_callbacks/main.c index b57b2fc6bc..9574b6ea0d 100644 --- a/examples/rxtx_callbacks/main.c +++ b/examples/rxtx_callbacks/main.c @@ -329,8 +329,8 @@ 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", - portid); + rte_exit(EXIT_FAILURE, "Cannot init port %u\n", + (unsigned int)portid); if (rte_lcore_count() > 1) printf("\nWARNING: Too much enabled lcores - "