projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3c381db
)
mm: cma: print region name on failure
author
Patrick Daly
<pdaly@codeaurora.org>
Fri, 26 Feb 2021 01:16:44 +0000
(17:16 -0800)
committer
Linus Torvalds
<torvalds@linux-foundation.org>
Fri, 26 Feb 2021 17:41:00 +0000
(09:41 -0800)
Print the name of the CMA region for convenience. This is useful
information to have when cma_alloc() fails.
[pdaly@codeaurora.org: print the "count" variable]
Link:
https://lkml.kernel.org/r/20210209142414.12768-1-georgi.djakov@linaro.org
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>
Acked-by: Minchan Kim <minchan@kernel.org>
Reviewed-by: David Hildenbrand <david@redhat.com>
Reviewed-by: Randy Dunlap <rdunlap@infradead.org>
Cc: Minchan Kim <minchan@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/cma.c
patch
|
blob
|
history
diff --git
a/mm/cma.c
b/mm/cma.c
index 23d4a97c834a5312635b918cc5cd56fe5a265059..54eee2119822026fe08a2c24329c5f5b8ee3516a 100644
(file)
--- 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);
}