aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick Daly <pdaly@codeaurora.org>2021-02-09 11:03:34 +1100
committerStephen Rothwell <sfr@canb.auug.org.au>2021-02-11 07:49:00 +1100
commit1d881c0431850a197c9164c4b8009b48481b9263 (patch)
tree297a0e29c96ac4bd0f58f536fa8f35b68945bda2
parentfd3836e9d3b310be757e26664854371c8bac68a6 (diff)
downloadlinux-next-1d881c0431850a197c9164c4b8009b48481b9263.tar.gz
mm: cma: print region name on failure
Notice: this object is not reachable from any branch.
Print the name of the cma region for convienience. This is useful information to have when cma_alloc() fails. Link: https://lkml.kernel.org/r/20210208115200.20286-1-georgi.djakov@linaro.org Signed-off-by: Patrick Daly <pdaly@codeaurora.org> Signed-off-by: Georgi Djakov <georgi.djakov@linaro.org> Cc: Minchan Kim <minchan@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Notice: this object is not reachable from any branch.
-rw-r--r--mm/cma.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mm/cma.c b/mm/cma.c
index 23d4a97c834a5..9ca6eaa0e52e8 100644
--- a/mm/cma.c
+++ b/mm/cma.c
@@ -500,8 +500,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);
}