* [PATCH] lib/eventdev: use correct format string for data type on log call
@ 2024-12-27 16:18 Andre Muezerie
2024-12-27 18:00 ` Stephen Hemminger
0 siblings, 1 reply; 2+ messages in thread
From: Andre Muezerie @ 2024-12-27 16:18 UTC (permalink / raw)
To: Amit Prakash Shukla, Jerin Jacob; +Cc: dev, Andre Muezerie
The fix is to use the correct macro for the data type being logged.
Signed-off-by: Andre Muezerie <andremue@linux.microsoft.com>
---
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] lib/eventdev: use correct format string for data type on log call
2024-12-27 16:18 [PATCH] lib/eventdev: use correct format string for data type on log call Andre Muezerie
@ 2024-12-27 18:00 ` Stephen Hemminger
0 siblings, 0 replies; 2+ messages in thread
From: Stephen Hemminger @ 2024-12-27 18:00 UTC (permalink / raw)
To: Andre Muezerie; +Cc: Amit Prakash Shukla, Jerin Jacob, dev
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>
> Cc: dev@dpdk.org, Andre Muezerie <andremue@linux.microsoft.com>
> 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.
>
> Signed-off-by: Andre Muezerie <andremue@linux.microsoft.com>
Acked-by: Stephen Hemminger <stephen@networkplumber.org>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-12-27 18:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-12-27 16:18 [PATCH] lib/eventdev: use correct format string for data type on log call Andre Muezerie
2024-12-27 18:00 ` Stephen Hemminger
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).