All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] mm: cma: Print region name on failure
@ 2021-02-08 11:52 Georgi Djakov
  0 siblings, 0 replies; only message in thread
From: Georgi Djakov @ 2021-02-08 11:52 UTC (permalink / raw)
  To: akpm, linux-mm; +Cc: linux-kernel, pdaly, georgi.djakov

From: Patrick Daly <pdaly@codeaurora.org>

Print the name of the cma region for convienience. This is useful
information to have when cma_alloc() fails.

Signed-off-by: Patrick Daly <pdaly@codeaurora.org>
Signed-off-by: Georgi Djakov <georgi.djakov@linaro.org>
---
 mm/cma.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/mm/cma.c b/mm/cma.c
index 23d4a97c834a..9ca6eaa0e52e 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);
 	}
 

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2021-02-08 12:13 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-08 11:52 [PATCH] mm: cma: Print region name on failure Georgi Djakov

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.