Skip to content

Commit

Permalink
eventdev: fix format string data type in log messages
Browse files Browse the repository at this point in the history
The fix is to use the correct macro for the data type being logged.

Fixes: 112bf80 ("eventdev/dma: support vchan add and delete")
Fixes: 2c6e23c ("eventdev/dma: support adapter runtime params")
Cc: [email protected]

Signed-off-by: Andre Muezerie <[email protected]>
Acked-by: Stephen Hemminger <[email protected]>
  • Loading branch information
Andre Muezerie authored and jerinjacobk committed Jan 22, 2025
1 parent 9920eff commit b2ff5f6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/eventdev/rte_event_dma_adapter.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down Expand Up @@ -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;
}

Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit b2ff5f6

Please sign in to comment.