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 52BFDA0A02; Wed, 5 May 2021 23:51:46 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C7D5140040; Wed, 5 May 2021 23:51:45 +0200 (CEST) Received: from mail-lf1-f47.google.com (mail-lf1-f47.google.com [209.85.167.47]) by mails.dpdk.org (Postfix) with ESMTP id 921EE4003C; Wed, 5 May 2021 23:51:44 +0200 (CEST) Received: by mail-lf1-f47.google.com with SMTP id z9so4728449lfu.8; Wed, 05 May 2021 14:51: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=YEMOpoWcLQoEgaMQsrYrXelvQqWH3H4iFThVqkUB8+Q=; b=fEaNsOR8eIkQA3+XcyYNIqrHreRHzn11igm9uuwcfSOzrRE7TNObBOhb5rAJAC5Vkb VCIz/e2gzSd8a0sM16xqExKcSEfhC5eYbQ7TIijMfIDaAsMoXriuz0Akg8h352CJW/th UjPwGYMR+JxRfXOJKyVCl0bK52+U02BTY3Yzo1sXDrez5CVLn0nUk5MVTPXPqdk936u5 +oqzsFBAUAOh7HLawMltn1MQosEhfDel0i+cBaOYQZfq7l0bzP1F3hS+kRm0/gi79+IM cdINoxFedLlfeWjYHVYb//qvc/SI0eZ5bykS2HJdUPc9tUSLvfesiA/re5JFucJ7e9S/ KOOg== 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=YEMOpoWcLQoEgaMQsrYrXelvQqWH3H4iFThVqkUB8+Q=; b=hFozKxYMiiHifVS0FTDcM/65974R9LKsbKvg9xdC/ljrpzweqgMjdbEVxZ5wnok1xq FkH/f1uE8W9aWgDEh2mSEucom0s5SuzD++jMnsXv/sawRxqR1rKTNl5SvkSwi7UZs2Pk 1pAxVI0FYPjHPDySctxlFAFXMsPL5uKyIaqBkHSQ8noGp/tTyocUX/QPh6yyRVdiFO4P y2sHxBu7c39REoOo9YP704IuKVM544EzLJr8m1f+mwThd3pqZaVLMJEcaLoJ5ebzhvvq 1CtYIaCCChpoY5lojRQvoWMSshYhQTxPWZfx/oEQmv5Zj67+EmtnHlc+eoyWkO3/LqO9 53Sg== X-Gm-Message-State: AOAM5309tvt24zU/a7JCESCMT1xx9mkgRjH0V5anouazalTvYvdag1b5 W339N+NkpFCrTQOK0USVJLvqD2n5WV0XLw== X-Google-Smtp-Source: ABdhPJxRl8vXclmUbXMaoU2jOD/XAGaxeASZkuZRdQCBV5qr3jUt230CdThHPjW9H3v6OoMvGdw3RQ== X-Received: by 2002:ac2:5f58:: with SMTP id 24mr623689lfz.200.1620251503788; Wed, 05 May 2021 14:51: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 d22sm157895ljl.15.2021.05.05.14.51.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 May 2021 14:51: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:51:33 +0300 Message-Id: <20210505215133.21818-1-dmitry.kozliuk@gmail.com> X-Mailer: git-send-email 2.29.3 In-Reply-To: <20210502025656.29910-1-dmitry.kozliuk@gmail.com> References: <20210502025656.29910-1-dmitry.kozliuk@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH v2] 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 --- v2: use PRIx16 instead of %u and a cast (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..ecc2da2d8c 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 %"PRIx16"\n", portid); if (rte_lcore_count() > 1) -- 2.29.3