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 93E58A0546; Sun, 14 Feb 2021 02:20:41 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6988B1CC502; Sun, 14 Feb 2021 02:20:29 +0100 (CET) Received: from mail-lj1-f176.google.com (mail-lj1-f176.google.com [209.85.208.176]) by mails.dpdk.org (Postfix) with ESMTP id 060B2406A2; Sun, 14 Feb 2021 02:20:26 +0100 (CET) Received: by mail-lj1-f176.google.com with SMTP id a22so3619875ljp.10; Sat, 13 Feb 2021 17:20:26 -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=JaXEac06BfRiTfCzJm8/MZf0FUPdE+rPQExWOclF0e7KlPSOX14pyfnSbduCgrMzja LctHPq8fExgmI8dBdsQx7XyJEa3AVKvTUG3EhnXuKljvvaZciCB2M74qQqaSwxBWrRlo VXuduGbk7q4st70M1KvN46tbE9QrOUoNJc11idHGOJQTDMEX7t2ilvLDGHnFDfBEG2Zb WwoKcO7VcGrnANRihH8JA8ERL/nr50uQKli+MqQZ+GpzevmRNBWDv079dZs6i+8agI3P yoN54Po+2xyoDA+r33Z2q/HzwSuyX/IEdpcIyXPPyIkVAA/BZnUIkfdR69GBifa7gVJS sYMg== 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=MflQ/AERCsZ4nLwJSWhhvKaroxpXTRLoOhN3BG5vvGSKUaG+xnERSWSb5+oNqQjwil GAqUlgl1ba3SECu5aAnfk67Mcf3Y17Z76h8nEHKrDY+anD/mW0BwZlfbi4oYv1/jl2X7 wo4m2kJanw/VL4OBYT7XLQKwXuEV2Yeb40A8x+5MEAtZKVMMcwoypEutvxLT134SFT7H EhnEdsTLr/2f3HKTmeYl2UvoXz/5y7Ic9Wb+twjh/UHm/jlZd/2MXWwwrUPI6BEwE1t/ 6jFjxwyENdFcCfOxhWv1mxZh58TsriLDZaeuFVrxPEbqi6TLQIMIYgljwXyB4nDTccXS 3IeQ== X-Gm-Message-State: AOAM531YjFVBZeWBw7IJKXglWkLD1AVgPMX8JdEpjTFne8qoeG5utpEf FRLTZxGuR7EhKi7dtXG2sp9boPxCh/L2gw== X-Google-Smtp-Source: ABdhPJwSz42o8jQkV8RV7cOEjmRUfOZOOWVkJVauDJUWM7JxOTDJQUYvx9MiSqQOX8sSEBTucIY30w== X-Received: by 2002:a2e:81c7:: with SMTP id s7mr5696128ljg.178.1613265625463; Sat, 13 Feb 2021 17:20:25 -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 h11sm2237648lfd.243.2021.02.13.17.20.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 13 Feb 2021 17:20:25 -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 04:20:09 +0300 Message-Id: <20210214012013.23165-3-dmitry.kozliuk@gmail.com> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210214012013.23165-1-dmitry.kozliuk@gmail.com> References: <20210214012013.23165-1-dmitry.kozliuk@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH 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