linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3] mm/numa_memblks: Use pr_debug instead of printk(KERN_DEBUG)
@ 2025-08-13  7:21 pratyush.brahma
  2025-08-13  8:21 ` Mike Rapoport
  0 siblings, 1 reply; 2+ messages in thread
From: pratyush.brahma @ 2025-08-13  7:21 UTC (permalink / raw)
  To: Andrew Morton, Mike Rapoport
  Cc: linux-mm, linux-kernel, Pratyush Brahma, Joshua Hahn

From: Pratyush Brahma <pratyush.brahma@oss.qualcomm.com>

Replace the direct usage of printk(KERN_DEBUG ...) with pr_debug(...) to
align with the consistent `pr_*` API usage within the file.

Reviewed-by: Joshua Hahn <joshua.hahnjy@gmail.com>
Signed-off-by: Pratyush Brahma <pratyush.brahma@oss.qualcomm.com>
---
Changes in v3:
- Restored printk header as per initial implementation
- Link to v2: https://lore.kernel.org/r/20250811-numa-dbg-v2-1-7842aa2d4c41@oss.qualcomm.com

Changes in v2:
- Removed printk header as suggested by Joshua.
- Link to v1: https://lore.kernel.org/r/20250808-numa-dbg-v1-1-2ddd1ec634aa@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>



^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH v3] mm/numa_memblks: Use pr_debug instead of printk(KERN_DEBUG)
  2025-08-13  7:21 [PATCH v3] mm/numa_memblks: Use pr_debug instead of printk(KERN_DEBUG) pratyush.brahma
@ 2025-08-13  8:21 ` Mike Rapoport
  0 siblings, 0 replies; 2+ messages in thread
From: Mike Rapoport @ 2025-08-13  8:21 UTC (permalink / raw)
  To: Andrew Morton, pratyush.brahma
  Cc: Mike Rapoport, linux-mm, linux-kernel, Joshua Hahn

From: Mike Rapoport (Microsoft) <rppt@kernel.org>

On Wed, 13 Aug 2025 12:51:02 +0530, pratyush.brahma@oss.qualcomm.com wrote:
> Replace the direct usage of printk(KERN_DEBUG ...) with pr_debug(...) to
> align with the consistent `pr_*` API usage within the file.
> 
> 

Applied to fixes branch of memblock.git tree, thanks!

[1/1] mm/numa_memblks: Use pr_debug instead of printk(KERN_DEBUG)
      commit: d045c3154080a04beb07726fa311b89d21608981

tree: https://git.kernel.org/pub/scm/linux/kernel/git/rppt/memblock
branch: fixes

--
Sincerely yours,
Mike.



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2025-08-13  8:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-13  7:21 [PATCH v3] mm/numa_memblks: Use pr_debug instead of printk(KERN_DEBUG) pratyush.brahma
2025-08-13  8:21 ` Mike Rapoport

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).