diff options
author | Fabio Estevam <festevam@gmail.com> | 2012-02-21 09:51:59 -0500 |
---|---|---|
committer | Vinod Koul <vinod.koul@linux.intel.com> | 2012-03-06 06:31:07 -0500 |
commit | d8b53489d4c80490a70327fce6657816e33fafb3 (patch) | |
tree | 4aae62840a59c10d1bc6c275394de2898b41e103 /drivers/dma/dmaengine.c | |
parent | 865d9438eb1f7670d2e88849f059db551b320887 (diff) |
dma: dmaengine: Distinguish between 'dmaengine: failed to get' messages
The message "dmaengine: failed to get" can come from two possible locations within dmaengine.c.
In order to distinguish between them, replace "dmaengine" with __func__ string so that the
source function of the error message can be easily identified.
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Vinod Koul <vinod.koul@linux.intel.com>
Diffstat (limited to 'drivers/dma/dmaengine.c')
-rw-r--r-- | drivers/dma/dmaengine.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/dma/dmaengine.c b/drivers/dma/dmaengine.c index a6c6051ec858..767bcc31b365 100644 --- a/drivers/dma/dmaengine.c +++ b/drivers/dma/dmaengine.c | |||
@@ -510,8 +510,8 @@ struct dma_chan *__dma_request_channel(dma_cap_mask_t *mask, dma_filter_fn fn, v | |||
510 | dma_chan_name(chan)); | 510 | dma_chan_name(chan)); |
511 | list_del_rcu(&device->global_node); | 511 | list_del_rcu(&device->global_node); |
512 | } else if (err) | 512 | } else if (err) |
513 | pr_debug("dmaengine: failed to get %s: (%d)\n", | 513 | pr_debug("%s: failed to get %s: (%d)\n", |
514 | dma_chan_name(chan), err); | 514 | __func__, dma_chan_name(chan), err); |
515 | else | 515 | else |
516 | break; | 516 | break; |
517 | if (--device->privatecnt == 0) | 517 | if (--device->privatecnt == 0) |
@@ -564,8 +564,8 @@ void dmaengine_get(void) | |||
564 | list_del_rcu(&device->global_node); | 564 | list_del_rcu(&device->global_node); |
565 | break; | 565 | break; |
566 | } else if (err) | 566 | } else if (err) |
567 | pr_err("dmaengine: failed to get %s: (%d)\n", | 567 | pr_err("%s: failed to get %s: (%d)\n", |
568 | dma_chan_name(chan), err); | 568 | __func__, dma_chan_name(chan), err); |
569 | } | 569 | } |
570 | } | 570 | } |
571 | 571 | ||