From: Pintu Kumar Date: Thu, 6 Jul 2023 18:33:34 +0000 (+0530) Subject: mm: cma: print cma name as well in cma_alloc debug X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=35fb4764c8b2cdd91820761eb03c18106d46b8ae;p=tomoyo%2Ftomoyo-test1.git 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 Signed-off-by: Pintu Agarwal Cc: Minchan Kim Signed-off-by: Andrew Morton --- diff --git a/mm/cma.c b/mm/cma.c index a4cfe995e11e..4880f72102fa 100644 --- a/mm/cma.c +++ b/mm/cma.c @@ -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;