powerpc/mm: move a KERN_WARNING message to KERN_DEBUG
PATCH 1/1 powerpc/mm: move a KERN_WARNING message to KERN_DEBUG
resize_hpt_for_hotplug() reports a warning when it cannot increase the hash page table ("Unable to resize hash page table to target order") but this is not blocking and can make user thinks something has not worked properly.
If the operation cannot be done the real error message will be reported by arch_add_memory() if create_section_mapping() fails.
--- arch/powerpc/mm/hash_utils_64.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/powerpc/mm/hash_utils_64.c +1 -1
@@ -778,7 +778,7 @@ void resize_hpt_for_hotplug(unsigned long new_mem_size) rc = mmu_hash_ops.resize_hpt (target_hpt_shift);if (rc && (rc != -ENODEV )) -printk (KERN_WARNING +printk (KERN_DEBUG "Unable to resize hash page table to target order %d: %d\n" , target_hpt_shift, rc); }
Signature · 1 line
2.20.1
Le 05/02/2019 à 19:03, Laurent Vivier a écrit :
Quoted 19 lines
resize_hpt_for_hotplug()reports a warning when it cannot increase the hash page table ("Unable to resize hash page table to target order") but this is not blocking and can make user thinks something has not worked properly.If the operation cannot be done the real error message will be reported by
arch_add_memory()ifcreate_section_mapping()fails.Signed-off-by Laurent Vivier <[email protected]>--- arch/powerpc/mm/hash_utils_64.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)arch/powerpc/mm/hash_utils_64.c +0
-0
arch/powerpc/mm/hash_utils_64.c void resize_hpt_for_hotplug(unsigned long new_mem_size) · line 781
Quoted 5 lines
arch/powerpc/mm/hash_utils_64.c +1
-1@@ -778,7 +778,7 @@ void resize_hpt_for_hotplug(unsigned long new_mem_size) rc = mmu_hash_ops.resize_hpt (target_hpt_shift);if (rc && (rc != -ENODEV )) - printk(KERN_WARNING + printk(KERN_DEBUG
You should use pr_debug() instead.
Christophe
Quoted 4 lines
arch/powerpc/mm/hash_utils_64.c +0
-0"Unable to resize hash page table to target order %d: %d\n" , target_hpt_shift, rc); }