aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Daly <[email protected]>2021-02-25 17:16:44 -0800
committerLinus Torvalds <[email protected]>2021-02-26 09:41:00 -0800
commita052d4d13d88c2073d1339d9dce02cba7b4dc609 (patch)
tree4248b33ed47600d0c0aa1b5a6d2ee2b10d3a731e
parent3c381db1fac80373f2cc0d8c1d0bcfbf8bd4fb57 (diff)
mm: cma: print region name on failure
Print the name of the CMA region for convenience. This is useful information to have when cma_alloc() fails. [[email protected]: print the "count" variable] Link: https://lkml.kernel.org/r/[email protected] Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Patrick Daly <[email protected]> Signed-off-by: Georgi Djakov <[email protected]> Acked-by: Minchan Kim <[email protected]> Reviewed-by: David Hildenbrand <[email protected]> Reviewed-by: Randy Dunlap <[email protected]> Cc: Minchan Kim <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
-rw-r--r--mm/cma.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mm/cma.c b/mm/cma.c
index 23d4a97c834a..54eee2119822 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, count, ret);
cma_debug_show_areas(cma);
}