samples: drivers: dma: Improve failure debug granularity
When the sample fails, it's difficult to identify whether it failed during the configuration or transfer stage. Provide a little more information which will allude to the nature of the failure. Change-Id: I5272ce73f56b0e51c8439d5510e512b616665705 Signed-off-by: Lee Jones <lee.jones@linaro.org>
This commit is contained in:
parent
efe7c939c2
commit
d14e4522eb
|
@ -101,12 +101,12 @@ void main(void)
|
|||
dma_trans.destination_address = (uint32_t *)rx_data[transfer_count];
|
||||
|
||||
if (dma_transfer_config(dma, chan_id, &dma_trans)) {
|
||||
printk("ERROR: transfer\n");
|
||||
printk("ERROR: transfer config\n");
|
||||
return;
|
||||
}
|
||||
|
||||
if (dma_transfer_start(dma, chan_id)) {
|
||||
printk("ERROR: transfer\n");
|
||||
printk("ERROR: transfer start\n");
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue