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 B29CB46211 for ; Thu, 13 Feb 2025 11:01:01 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id AE88D40287; Thu, 13 Feb 2025 11:01:01 +0100 (CET) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mails.dpdk.org (Postfix) with ESMTP id 1B61842EDE for ; Thu, 13 Feb 2025 11:01:00 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1739440859; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=gACkJ391g4FSBEqRB9ezdlW+xZ6Au/RdunFRura5l4E=; b=drl92bmORcjsqVYDXer/z6jnBCBrKqkJF4pVmtWXH8JEuMCeuORrg8kTheo1aI/J2DPTJ4 BNKZqV9sMStZmERrq7OXQKGvhV97Glk1KJTAE6hBs5xLhIUaWf5y29ETRNqP8xysu5VOCG 21kNZwkUcj7S/fpNWBtB7jWataJBKww= Received: from mx-prod-mc-02.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-632-TX19Oc7dPrqxAZEE5E6cmg-1; Thu, 13 Feb 2025 05:00:58 -0500 X-MC-Unique: TX19Oc7dPrqxAZEE5E6cmg-1 X-Mimecast-MFC-AGG-ID: TX19Oc7dPrqxAZEE5E6cmg Received: from mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.93]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-02.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 44E4E18EB2CB; Thu, 13 Feb 2025 10:00:57 +0000 (UTC) Received: from rh.Home (unknown [10.45.224.21]) by mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id B5EB41800365; Thu, 13 Feb 2025 10:00:55 +0000 (UTC) From: Kevin Traynor To: Andre Muezerie Cc: Stephen Hemminger , dpdk stable Subject: patch 'eventdev: fix format string data type in log messages' has been queued to stable release 24.11.2 Date: Thu, 13 Feb 2025 09:57:59 +0000 Message-ID: <20250213095933.362078-32-ktraynor@redhat.com> In-Reply-To: <20250213095933.362078-1-ktraynor@redhat.com> References: <20250213095933.362078-1-ktraynor@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.93 X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: ZjQ-Sq1LNfj-XmIFHR6S0XzOBf-5KE-iy_DIvgniAt4_1739440857 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit content-type: text/plain; charset="US-ASCII"; x-default=true X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Hi, FYI, your patch has been queued to stable release 24.11.2 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 02/17/25. So please shout if anyone has objections. Also note that after the patch there's a diff of the upstream commit vs the patch applied to the branch. This will indicate if there was any rebasing needed to apply to the stable branch. If there were code changes for rebasing (ie: not only metadata diffs), please double check that the rebase was correctly done. Queued patches are on a temporary branch at: https://github.com/kevintraynor/dpdk-stable This queued commit can be viewed at: https://github.com/kevintraynor/dpdk-stable/commit/fcd0f442faa2129fada0515f252c1fac797cfcce Thanks. Kevin --- >From fcd0f442faa2129fada0515f252c1fac797cfcce Mon Sep 17 00:00:00 2001 From: Andre Muezerie Date: Fri, 27 Dec 2024 08:18:05 -0800 Subject: [PATCH] eventdev: fix format string data type in log messages [ upstream commit b2ff5f66189e75deea067598263929c591250e1b ] The fix is to use the correct macro for the data type being logged. Fixes: 112bf8055d90 ("eventdev/dma: support vchan add and delete") Fixes: 2c6e23cd5e76 ("eventdev/dma: support adapter runtime params") Signed-off-by: Andre Muezerie Acked-by: Stephen Hemminger --- lib/eventdev/rte_event_dma_adapter.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/eventdev/rte_event_dma_adapter.c b/lib/eventdev/rte_event_dma_adapter.c index ff2bc408c1..165374d195 100644 --- a/lib/eventdev/rte_event_dma_adapter.c +++ b/lib/eventdev/rte_event_dma_adapter.c @@ -997,5 +997,5 @@ rte_event_dma_adapter_vchan_add(uint8_t id, int16_t dma_dev_id, uint16_t vchan, if (!rte_dma_is_valid(dma_dev_id)) { - RTE_EDEV_LOG_ERR("Invalid dma_dev_id = %" PRIu8, dma_dev_id); + RTE_EDEV_LOG_ERR("Invalid dma_dev_id = %" PRId16, dma_dev_id); return -EINVAL; } @@ -1110,5 +1110,5 @@ rte_event_dma_adapter_vchan_del(uint8_t id, int16_t dma_dev_id, uint16_t vchan) if (!rte_dma_is_valid(dma_dev_id)) { - RTE_EDEV_LOG_ERR("Invalid dma_dev_id = %" PRIu8, dma_dev_id); + RTE_EDEV_LOG_ERR("Invalid dma_dev_id = %" PRId16, dma_dev_id); return -EINVAL; } @@ -1268,5 +1268,5 @@ dma_adapter_cap_check(struct event_dma_adapter *adapter) ret = rte_event_dma_adapter_caps_get(adapter->eventdev_id, adapter->next_dmadev_id, &caps); if (ret) { - RTE_EDEV_LOG_ERR("Failed to get adapter caps dev %" PRIu8 " cdev %" PRIu8, + RTE_EDEV_LOG_ERR("Failed to get adapter caps dev %" PRIu8 " cdev %" PRIu16, adapter->eventdev_id, adapter->next_dmadev_id); return ret; -- 2.48.1 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2025-02-12 17:29:38.057487849 +0000 +++ 0032-eventdev-fix-format-string-data-type-in-log-messages.patch 2025-02-12 17:29:34.298945619 +0000 @@ -1 +1 @@ -From b2ff5f66189e75deea067598263929c591250e1b Mon Sep 17 00:00:00 2001 +From fcd0f442faa2129fada0515f252c1fac797cfcce Mon Sep 17 00:00:00 2001 @@ -5,0 +6,2 @@ +[ upstream commit b2ff5f66189e75deea067598263929c591250e1b ] + @@ -10 +11,0 @@ -Cc: stable@dpdk.org