Skip to contentSkip to conversation

lib/eventdev: use correct format string for data type on log call

PATCH In review Andre Muezerie 3 participants 3 messages Dec 27, 2024 – Jan 22, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 lib/eventdev: use correct format string for data type on log call

The fix is to use the correct macro for the data type being logged.

---
 lib/eventdev/rte_event_dma_adapter.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
lib/eventdev/rte_event_dma_adapter.c +3 -3
index ff2bc408c1..165374d195 100644
@@ -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;
 	}
Signature · 1 line
2.47.0.vfs.0.3
Acked-by on v1 1/1
#1 lore raw
Quoted 10 lines · On Fri, 27 Dec 2024 08:18:05 -0800 Andre Muezerie…

From: Andre Muezerie <[email protected]>
To: Amit Prakash Shukla <[email protected]>, Jerin Jacob <[email protected]>
Cc: [email protected], Andre Muezerie <[email protected]>
Subject: [PATCH] lib/eventdev: use correct format string for data type on log call
Date: Fri, 27 Dec 2024 08:18:05 -0800
X-Mailer: git-send-email 1.8.3.1

The fix is to use the correct macro for the data type being logged.

Acked-by Stephen Hemminger
#2 lore raw
Quoted 28 lines

-----Original Message-----
From: Stephen Hemminger <[email protected]>
Sent: Friday, December 27, 2024 11:30 PM
To: Andre Muezerie <[email protected]>
Cc: Amit Prakash Shukla <[email protected]>; Jerin Jacob <[email protected]>; [email protected]
Subject: [EXTERNAL] Re: [PATCH] lib/eventdev: use correct format string for data type on log call

On Fri, 27 Dec 2024 08: 18: 05 -0800 Andre Muezerie <andremue@ linux. microsoft. com> wrote: > From: Andre Muezerie <andremue@ linux. microsoft. com> > To: Amit Prakash Shukla <amitprakashs@ marvell. com>, Jerin Jacob <jerinj@ marvell. com>

Quoted 9 lines · On Fri, 27 Dec 2024 08:18:05 -0800 Andre Muezerie…

From: Andre Muezerie <[email protected]>
To: Amit Prakash Shukla <[email protected]>, Jerin Jacob <[email protected]>
Cc: [email protected], Andre Muezerie <[email protected]>
Subject: [PATCH] lib/eventdev: use correct format string for data type on log call
Date: Fri, 27 Dec 2024 08:18:05 -0800
X-Mailer: git-send-email 1.8.3.1

Quoted 5 lines
Quoted 3 lines

The fix is to use the correct macro for the data type being logged.

Updated the git commit as follows and applied to dpdk-next-net-eventdev/for-main. Thanks

eventdev: fix format string data type of log call

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")