Skip to content

Commit 35fb476

Browse files
Pintu Kumarakpm00
authored andcommitted
mm: cma: print cma name as well in cma_alloc debug
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]>
1 parent 8f21912 commit 35fb476

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mm/cma.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -436,8 +436,8 @@ struct page *cma_alloc(struct cma *cma, unsigned long count,
436436
if (!cma || !cma->count || !cma->bitmap)
437437
goto out;
438438

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

442442
if (!count)
443443
goto out;

0 commit comments

Comments
 (0)