Skip to content

Commit

Permalink
mm: cma: print cma name as well in cma_alloc debug
Browse files Browse the repository at this point in the history
CMA allocation can happen either from global cma or from dedicated cma
region.

Thus it is helpful to print cma name as well during initial
debugging to confirm cma regions were getting initialized or not.

Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Pintu Kumar <[email protected]>
Signed-off-by: Pintu Agarwal <[email protected]>
Cc: Minchan Kim <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
  • Loading branch information
Pintu Kumar authored and akpm00 committed Aug 18, 2023
1 parent 8f21912 commit 35fb476
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mm/cma.c
Original file line number Diff line number Diff line change
Expand Up @@ -436,8 +436,8 @@ struct page *cma_alloc(struct cma *cma, unsigned long count,
if (!cma || !cma->count || !cma->bitmap)
goto out;

pr_debug("%s(cma %p, count %lu, align %d)\n", __func__, (void *)cma,
count, align);
pr_debug("%s(cma %p, name: %s, count %lu, align %d)\n", __func__,
(void *)cma, cma->name, count, align);

if (!count)
goto out;
Expand Down

0 comments on commit 35fb476

Please sign in to comment.