Skip to content

Commit fec40fe

Browse files
riteshharjanimaddy-kerneldev
authored andcommitted
powerpc/64s/hash: Improve hash mmu printk messages
Let's use pr_info() instead of printk() in order to utilize the pr_fmt set to "hash-mmu:". This improves the debug messages that are spitted out during kernel bootup. Signed-off-by: Ritesh Harjani (IBM) <ritesh.list@gmail.com> Signed-off-by: Madhavan Srinivasan <maddy@linux.ibm.com> Link: https://patch.msgid.link/a2af842f85c099cdbd19bf468606960c5226a079.1761834163.git.ritesh.list@gmail.com
1 parent 178dd2e commit fec40fe

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

arch/powerpc/mm/book3s64/hash_utils.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -952,7 +952,7 @@ static int __init htab_dt_scan_hugepage_blocks(unsigned long node,
952952
block_size = be64_to_cpu(addr_prop[1]);
953953
if (block_size != (16 * GB))
954954
return 0;
955-
printk(KERN_INFO "Huge page(16GB) memory: "
955+
pr_info("Huge page(16GB) memory: "
956956
"addr = 0x%lX size = 0x%lX pages = %d\n",
957957
phys_addr, block_size, expected_pages);
958958
if (phys_addr + block_size * expected_pages <= memblock_end_of_DRAM()) {
@@ -1135,7 +1135,7 @@ static void __init htab_init_page_sizes(void)
11351135
mmu_vmemmap_psize = mmu_virtual_psize;
11361136
#endif /* CONFIG_SPARSEMEM_VMEMMAP */
11371137

1138-
printk(KERN_DEBUG "Page orders: linear mapping = %d, "
1138+
pr_info("Page orders: linear mapping = %d, "
11391139
"virtual = %d, io = %d"
11401140
#ifdef CONFIG_SPARSEMEM_VMEMMAP
11411141
", vmemmap = %d"
@@ -1313,7 +1313,7 @@ static void __init htab_initialize(void)
13131313
if (mmu_has_feature(MMU_FTR_1T_SEGMENT)) {
13141314
mmu_kernel_ssize = MMU_SEGSIZE_1T;
13151315
mmu_highuser_ssize = MMU_SEGSIZE_1T;
1316-
printk(KERN_INFO "Using 1TB segments\n");
1316+
pr_info("Using 1TB segments\n");
13171317
}
13181318

13191319
if (stress_slb_enabled)
@@ -1869,7 +1869,7 @@ int hash_page_mm(struct mm_struct *mm, unsigned long ea,
18691869
* in vmalloc space, so switch vmalloc
18701870
* to 4k pages
18711871
*/
1872-
printk(KERN_ALERT "Reducing vmalloc segment "
1872+
pr_alert("Reducing vmalloc segment "
18731873
"to 4kB pages because of "
18741874
"non-cacheable mapping\n");
18751875
psize = mmu_vmalloc_psize = MMU_PAGE_4K;

0 commit comments

Comments
 (0)