From: Joshua Hahn <joshua.hahnjy@gmail.com>
To: pratyush.brahma@oss.qualcomm.com
Cc: Andrew Morton <akpm@linux-foundation.org>,
Mike Rapoport <rppt@kernel.org>,
linux-mm@kvack.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] mm/numa_memblks: Use pr_debug instead of printk(KERN_DEBUG)
Date: Fri, 8 Aug 2025 07:26:47 -0700 [thread overview]
Message-ID: <20250808142648.254205-1-joshua.hahnjy@gmail.com> (raw)
In-Reply-To: <20250808-numa-dbg-v1-1-2ddd1ec634aa@oss.qualcomm.com>
On Fri, 08 Aug 2025 17:42:22 +0530 pratyush.brahma@oss.qualcomm.com wrote:
> From: Pratyush Brahma <pratyush.brahma@oss.qualcomm.com>
Hi Pratyush,
Thank you for this patch!
> Replace the direct usage of printk(KERN_DEBUG ...) with pr_debug(...) to
> align with the consistent `pr_*` API usage within the file.
This change makes sense to me. Also, I think this patch gets rid of the last
caller of printk. Should we also remove the #include <linux/printk.h>?
With that change, please feel free to add my review tag. Have a great day!
Joshua
Reviewed-by: Joshua Hahn <joshua.hahnjy@gmail.com>
> Signed-off-by: Pratyush Brahma <pratyush.brahma@oss.qualcomm.com>
> ---
> mm/numa_memblks.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/mm/numa_memblks.c b/mm/numa_memblks.c
> index 541a99c4071a67e5b0ef66f4136dee268a880003..de626525a87c3ed54d31695e86f18c980c084558 100644
> --- a/mm/numa_memblks.c
> +++ b/mm/numa_memblks.c
> @@ -76,7 +76,7 @@ static int __init numa_alloc_distance(void)
> for (j = 0; j < cnt; j++)
> numa_distance[i * cnt + j] = i == j ?
> LOCAL_DISTANCE : REMOTE_DISTANCE;
> - printk(KERN_DEBUG "NUMA: Initialized distance table, cnt=%d\n", cnt);
> + pr_debug("NUMA: Initialized distance table, cnt=%d\n", cnt);
>
> return 0;
> }
>
> ---
> base-commit: 479058002c32b77acac43e883b92174e22c4be2d
> change-id: 20250808-numa-dbg-62a8b2092c56
>
> Best regards,
> --
> Pratyush Brahma <pratyush.brahma@oss.qualcomm.com>
Sent using hkml (https://github.com/sjp38/hackermail)
prev parent reply other threads:[~2025-08-08 14:26 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-08-08 12:12 pratyush.brahma
2025-08-08 14:26 ` Joshua Hahn [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250808142648.254205-1-joshua.hahnjy@gmail.com \
--to=joshua.hahnjy@gmail.com \
--cc=akpm@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=pratyush.brahma@oss.qualcomm.com \
--cc=rppt@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox