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 6E673A0546; Sun, 14 Feb 2021 03:16:41 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 494B322A23B; Sun, 14 Feb 2021 03:16:31 +0100 (CET) Received: from mail-lj1-f169.google.com (mail-lj1-f169.google.com [209.85.208.169]) by mails.dpdk.org (Postfix) with ESMTP id DE1531CC4DA; Sun, 14 Feb 2021 03:16:28 +0100 (CET) Received: by mail-lj1-f169.google.com with SMTP id b16so3659563lji.13; Sat, 13 Feb 2021 18:16:28 -0800 (PST) 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=A/ont9nC0eW4sOkIs2Tqf2yI/p1zWGMzmMgsmqnbb5E=; b=n1aTBnuApFUDzoGzmBMoxpCgq5vxnjlKOMkb9Uoz0YAxoYr9AQs5CWN+iql/WkBbST 2sj3bndhRhiRjex+bdzYvTSU3jKs9csWQDz+cEp6f5YWgoMyA/2ULPt5GBODMVdWSiYo oArxRwX2jjV0M2EsfI3zY/RVDJzEglXL7mUnFrdt8s9RMPUpSGA7Y/0wtWEKx/2zn0ir U3+5T1RLkBilS7Fi+f9caEZau6dxgNrvuSVzg+07v1tcuxok9BZCBPK195cdNWVBMQUv 8Z6pikBNGarQ01p89nBtbM47eccqN1LEMpFswDmvTEATid4L7uVVerB3BtFVTVz0UWZL f8zA== 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=A/ont9nC0eW4sOkIs2Tqf2yI/p1zWGMzmMgsmqnbb5E=; b=aUh15hrjFBO1xsDeCkwlQPRVTcnppdGM7XaFrfGlsELkpy0U9kSpFALOsbwkQiP4Ww RiD9iWiy8OkRtQNdc9oB+yVHMyGM9CNBnPN9uZlJqG/pK9bFwonj5Qe8KXXse4Sa3ThD ztteeV3IvzFQeTsbZW52npr6oxJJwTqMFC5pW9v77U76tlHiAf7RCyPH22PHcV5Ag6Q6 rEaOGedtj3Xz2/dmQxm5MGMACGACSKX9MXnlBJAvZs5kMcFqFOKu+l5zaOefT/P5h/CX 1aFfOvntg4frkF5M2LuQcvrn3uGUzX6/RQ97eKpFE1kW0iuTqn111d9pZIt+6J8dr55e R22A== X-Gm-Message-State: AOAM531xeS5TeQPX2TYOYHURDSEPyeWD/gaKhgblV+kjam5fZuKDz37O EbbabQb5mVoW/fjxgMSzNB0uvkHnrl4gzg== X-Google-Smtp-Source: ABdhPJz0xXG8xBNX4l/m9f8Pv6smPLJTPLOIwDU2rBjByxgeuD/GpazkEMS+WQwFI4mxwPUjdbyFPg== X-Received: by 2002:a2e:141d:: with SMTP id u29mr3269732ljd.90.1613268988336; Sat, 13 Feb 2021 18:16:28 -0800 (PST) Received: from localhost.localdomain (broadband-37-110-65-23.ip.moscow.rt.ru. [37.110.65.23]) by smtp.gmail.com with ESMTPSA id l19sm3017158lji.53.2021.02.13.18.16.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 13 Feb 2021 18:16:27 -0800 (PST) From: Dmitry Kozlyuk To: dev@dpdk.org Cc: Tyler Retzlaff , Mike Wells , Dmitry Kozlyuk , stable@dpdk.org, Ferruh Yigit Date: Sun, 14 Feb 2021 05:16:12 +0300 Message-Id: <20210214021616.26970-3-dmitry.kozliuk@gmail.com> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210214021616.26970-1-dmitry.kozliuk@gmail.com> References: <20210214012013.23165-1-dmitry.kozliuk@gmail.com> <20210214021616.26970-1-dmitry.kozliuk@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH v2 2/6] net/pcap: fix format string 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 PRIu32 for uint32_t (found by -Wformat with Clang on Windows). Fixes: a3f5252e5cbd ("net/pcap: enable infinitely Rx a pcap file") Cc: stable@dpdk.org Signed-off-by: Dmitry Kozlyuk --- drivers/net/pcap/rte_eth_pcap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/pcap/rte_eth_pcap.c b/drivers/net/pcap/rte_eth_pcap.c index 90f5d75ea..176928da3 100644 --- a/drivers/net/pcap/rte_eth_pcap.c +++ b/drivers/net/pcap/rte_eth_pcap.c @@ -827,7 +827,7 @@ eth_rx_queue_setup(struct rte_eth_dev *dev, pcap_pkt_count = count_packets_in_pcap(pcap, pcap_q); - snprintf(ring_name, sizeof(ring_name), "PCAP_RING%" PRIu16, + snprintf(ring_name, sizeof(ring_name), "PCAP_RING%" PRIu32, ring_number); pcap_q->pkts = rte_ring_create(ring_name, -- 2.29.2