Skip to content

Commit

Permalink
dma: dmaengine: Distinguish between 'dmaengine: failed to get' messages
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Fabio Estevam authored and Vinod Koul committed Mar 6, 2012
1 parent 865d943 commit d8b5348
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions drivers/dma/dmaengine.c
Original file line number Diff line number Diff line change
Expand Up @@ -510,8 +510,8 @@ struct dma_chan *__dma_request_channel(dma_cap_mask_t *mask, dma_filter_fn fn, v
dma_chan_name(chan));
list_del_rcu(&device->global_node);
} else if (err)
pr_debug("dmaengine: failed to get %s: (%d)\n",
dma_chan_name(chan), err);
pr_debug("%s: failed to get %s: (%d)\n",
__func__, dma_chan_name(chan), err);
else
break;
if (--device->privatecnt == 0)
Expand Down Expand Up @@ -564,8 +564,8 @@ void dmaengine_get(void)
list_del_rcu(&device->global_node);
break;
} else if (err)
pr_err("dmaengine: failed to get %s: (%d)\n",
dma_chan_name(chan), err);
pr_err("%s: failed to get %s: (%d)\n",
__func__, dma_chan_name(chan), err);
}
}

Expand Down

0 comments on commit d8b5348

Please sign in to comment.