Skip to content

Commit aa1838d

Browse files
committed
audio: host-zephyr: fix log print formatting
Multiple comp_err() statements refer to incorrect DMA function call names and/or use "%u" to print integer value. Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
1 parent ccfea65 commit aa1838d

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

src/audio/host-zephyr.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ static int host_dma_set_config_and_copy(struct host_data *hd, struct comp_dev *d
9595

9696
ret = sof_dma_reload(hd->dma, hd->chan_index, bytes);
9797
if (ret < 0) {
98-
comp_err(dev, "dma_copy() failed, ret = %d",
98+
comp_err(dev, "dma_reload() failed, ret = %d",
9999
ret);
100100
return ret;
101101
}
@@ -225,15 +225,15 @@ static int host_copy_one_shot(struct host_data *hd, struct comp_dev *dev, copy_c
225225
/* reconfigure transfer */
226226
ret = sof_dma_config(hd->dma, hd->chan_index, &hd->z_config);
227227
if (ret < 0) {
228-
comp_err(dev, "dma_config() failed, ret = %u", ret);
228+
comp_err(dev, "dma_config() failed, ret = %d", ret);
229229
return ret;
230230
}
231231

232232
cb(dev, copy_bytes);
233233

234234
ret = sof_dma_reload(hd->dma, hd->chan_index, copy_bytes);
235235
if (ret < 0)
236-
comp_err(dev, "dma_copy() failed, ret = %u", ret);
236+
comp_err(dev, "dma_reload() failed, ret = %d", ret);
237237

238238
return ret;
239239
}
@@ -428,7 +428,7 @@ static uint32_t host_get_copy_bytes_normal(struct host_data *hd, struct comp_dev
428428
/* get data sizes from DMA */
429429
ret = host_get_status(dev, hd, &dma_stat);
430430
if (ret < 0) {
431-
comp_err(dev, "dma_get_status() failed, ret = %u",
431+
comp_err(dev, "dma_get_status() failed, ret = %d",
432432
ret);
433433
/* return 0 copy_bytes in case of error to skip DMA copy */
434434
return 0;
@@ -559,7 +559,7 @@ static int host_copy_normal(struct host_data *hd, struct comp_dev *dev, copy_cal
559559
ret = sof_dma_reload(hd->dma, hd->chan_index,
560560
hd->partial_size);
561561
if (ret < 0)
562-
comp_err(dev, "dma_reload() failed, ret = %u", ret);
562+
comp_err(dev, "dma_reload() failed, ret = %d", ret);
563563

564564
hd->partial_size = 0;
565565
}
@@ -586,7 +586,7 @@ static int host_copy_normal(struct host_data *hd, struct comp_dev *dev, copy_cal
586586
ret = sof_dma_reload(hd->dma, hd->chan_index,
587587
hd->partial_size);
588588
if (ret < 0)
589-
comp_err(dev, "dma_reload() failed, ret = %u", ret);
589+
comp_err(dev, "dma_reload() failed, ret = %d", ret);
590590

591591
hd->partial_size = 0;
592592
}
@@ -661,7 +661,7 @@ int host_common_trigger(struct host_data *hd, struct comp_dev *dev, int cmd)
661661
hd->partial_size = 0;
662662
ret = sof_dma_start(hd->dma, hd->chan_index);
663663
if (ret < 0)
664-
comp_err(dev, "dma_start() failed, ret = %u",
664+
comp_err(dev, "dma_start() failed, ret = %d",
665665
ret);
666666
break;
667667
case COMP_TRIGGER_STOP:

0 commit comments

Comments
 (0)