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 2DDA245F4F; Fri, 27 Dec 2024 17:18:22 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id BBD244021F; Fri, 27 Dec 2024 17:18:21 +0100 (CET) Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by mails.dpdk.org (Postfix) with ESMTP id 6E8A540144 for ; Fri, 27 Dec 2024 17:18:20 +0100 (CET) Received: by linux.microsoft.com (Postfix, from userid 1213) id 8CA74203EC38; Fri, 27 Dec 2024 08:18:19 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 8CA74203EC38 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1735316299; bh=ga6wPK+rAeRK5F/s3qUGZF2aKNrQEyi8wuA3Q+jtbrE=; h=From:To:Cc:Subject:Date:From; b=BkGxG/LR0m4b4ZcJ4ZIoICdl8ZsdgqJb4bG56FisxyLOY3HX2G83FsrvTE5xYjIrM WULJGkA4UwHKfKKcWhnyw0E2Czat458DkLvXG/iZ7SjRACaGd7LmnkegBcqchovK4K 3JxN+nSKT1NWjGJHUoPFDrMgSxl6NSwr/zyXLAFE= From: Andre Muezerie To: Amit Prakash Shukla , Jerin Jacob Cc: dev@dpdk.org, Andre Muezerie Subject: [PATCH] lib/eventdev: use correct format string for data type on log call Date: Fri, 27 Dec 2024 08:18:05 -0800 Message-Id: <1735316285-16478-1-git-send-email-andremue@linux.microsoft.com> X-Mailer: git-send-email 1.8.3.1 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 The fix is to use the correct macro for the data type being logged. Signed-off-by: Andre Muezerie --- 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 @@ -996,7 +996,7 @@ rte_event_dma_adapter_vchan_add(uint8_t id, int16_t dma_dev_id, uint16_t vchan, EVENT_DMA_ADAPTER_ID_VALID_OR_ERR_RET(id, -EINVAL); 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; } @@ -1109,7 +1109,7 @@ rte_event_dma_adapter_vchan_del(uint8_t id, int16_t dma_dev_id, uint16_t vchan) EVENT_DMA_ADAPTER_ID_VALID_OR_ERR_RET(id, -EINVAL); 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; } @@ -1267,7 +1267,7 @@ 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.47.0.vfs.0.3