提交 d8b53489 编写于 作者: F Fabio Estevam 提交者: Vinod Koul

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: NFabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: NVinod Koul <vinod.koul@linux.intel.com>
上级 865d9438
...@@ -510,8 +510,8 @@ struct dma_chan *__dma_request_channel(dma_cap_mask_t *mask, dma_filter_fn fn, v ...@@ -510,8 +510,8 @@ struct dma_chan *__dma_request_channel(dma_cap_mask_t *mask, dma_filter_fn fn, v
dma_chan_name(chan)); dma_chan_name(chan));
list_del_rcu(&device->global_node); list_del_rcu(&device->global_node);
} else if (err) } else if (err)
pr_debug("dmaengine: failed to get %s: (%d)\n", pr_debug("%s: failed to get %s: (%d)\n",
dma_chan_name(chan), err); __func__, dma_chan_name(chan), err);
else else
break; break;
if (--device->privatecnt == 0) if (--device->privatecnt == 0)
...@@ -564,8 +564,8 @@ void dmaengine_get(void) ...@@ -564,8 +564,8 @@ void dmaengine_get(void)
list_del_rcu(&device->global_node); list_del_rcu(&device->global_node);
break; break;
} else if (err) } else if (err)
pr_err("dmaengine: failed to get %s: (%d)\n", pr_err("%s: failed to get %s: (%d)\n",
dma_chan_name(chan), err); __func__, dma_chan_name(chan), err);
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册