dmaengine: edma: Reduce debug print verbosity for non verbose debugging
authorPeter Ujfalusi <peter.ujfalusi@ti.com>
Mon, 14 Apr 2014 11:42:02 +0000 (14:42 +0300)
committerVinod Koul <vinod.koul@intel.com>
Tue, 22 Apr 2014 16:05:46 +0000 (21:35 +0530)
Do not print the paRAM information when verbose debugging is not asked and
also reduce the number of lines printed in edma_prep_dma_cyclic()

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 eef5164..5c24b60 100644 (file)
@@ -141,7 +141,7 @@ static void edma_execute(struct edma_chan *echan)
        for (i = 0; i < nslots; i++) {
                j = i + edesc->processed;
                edma_write_slot(echan->slot[i], &edesc->pset[j]);
-               dev_dbg(echan->vchan.chan.device->dev,
+               dev_vdbg(echan->vchan.chan.device->dev,
                        "\n pset[%d]:\n"
                        "  chnum\t%d\n"
                        "  slot\t%d\n"
@@ -562,9 +562,8 @@ static struct dma_async_tx_descriptor *edma_prep_dma_cyclic(
        edesc->cyclic = 1;
        edesc->pset_nr = nslots;
 
-       dev_dbg(dev, "%s: nslots=%d\n", __func__, nslots);
-       dev_dbg(dev, "%s: period_len=%d\n", __func__, period_len);
-       dev_dbg(dev, "%s: buf_len=%d\n", __func__, buf_len);
+       dev_dbg(dev, "%s: channel=%d nslots=%d period_len=%zu buf_len=%zu\n",
+               __func__, echan->ch_num, nslots, period_len, buf_len);
 
        for (i = 0; i < nslots; i++) {
                /* Allocate a PaRAM slot, if needed */
@@ -598,8 +597,8 @@ static struct dma_async_tx_descriptor *edma_prep_dma_cyclic(
                else
                        src_addr += period_len;
 
-               dev_dbg(dev, "%s: Configure period %d of buf:\n", __func__, i);
-               dev_dbg(dev,
+               dev_vdbg(dev, "%s: Configure period %d of buf:\n", __func__, i);
+               dev_vdbg(dev,
                        "\n pset[%d]:\n"
                        "  chnum\t%d\n"
                        "  slot\t%d\n"