Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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/1688668414-12350-1-git-send-email-quic_pintu@quicinc.com
Signed-off-by: Pintu Kumar <quic_pintu@quicinc.com>
Signed-off-by: Pintu Agarwal <pintu.ping@gmail.com>
Cc: Minchan Kim <minchan@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>

authored by

Pintu Kumar and committed by
Andrew Morton
35fb4764 8f21912a

+2 -2
+2 -2
mm/cma.c
··· 436 436 if (!cma || !cma->count || !cma->bitmap) 437 437 goto out; 438 438 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); 441 441 442 442 if (!count) 443 443 goto out;