dmaengine: edma: Print the direction value as well when it is not supported
authorPeter Ujfalusi <peter.ujfalusi@ti.com>
Mon, 14 Apr 2014 11:42:05 +0000 (14:42 +0300)
committerVinod Koul <vinod.koul@intel.com>
Tue, 22 Apr 2014 16:06:10 +0000 (21:36 +0530)
In case of not supported direction it is better to print the direction also.
It is unlikely, but in such an event it helps with the debugging.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Acked-by: Joel Fernandes <joelf@ti.com>
Reviewed-and-Tested-by: Joel Fernandes <joelf@ti.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/edma.c

index 571f3b1..ea04b21 100644 (file)
@@ -433,7 +433,7 @@ static struct dma_async_tx_descriptor *edma_prep_slave_sg(
                dev_width = echan->cfg.dst_addr_width;
                burst = echan->cfg.dst_maxburst;
        } else {
-               dev_err(dev, "%s: bad direction?\n", __func__);
+               dev_err(dev, "%s: bad direction: %d\n", __func__, direction);
                return NULL;
        }
 
@@ -526,7 +526,7 @@ static struct dma_async_tx_descriptor *edma_prep_dma_cyclic(
                dev_width = echan->cfg.dst_addr_width;
                burst = echan->cfg.dst_maxburst;
        } else {
-               dev_err(dev, "%s: bad direction?\n", __func__);
+               dev_err(dev, "%s: bad direction: %d\n", __func__, direction);
                return NULL;
        }