mm: cma: Print region name on failure

Print the name of the cma region for convienience.

Change-Id: Ia7ac64d5257ab5be7f03a51173af01c6a9109335
Signed-off-by: Patrick Daly <pdaly@codeaurora.org>
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
This commit is contained in:
Patrick Daly 2019-07-19 17:38:57 -07:00 • committed by Isaac J. Manjarres
commit 45422bc880

View file

@ -554,8 +554,8 @@ struct page *cma_alloc(struct cma *cma, size_t count, unsigned int align,
}
if (ret && !no_warn) {
pr_err("%s: alloc failed, req-size: %zu pages, ret: %d\n",
__func__, count, ret);
pr_err("%s: %s: alloc failed, req-size: %zu pages, ret: %d\n",
__func__, cma->name, cma->count, ret);
cma_debug_show_areas(cma);
}