From: Wanpeng Li Date: Wed, 11 Sep 2013 21:22:57 +0000 (-0700) Subject: mm/hwpoison: add '#' to madvise_hwpoison X-Git-Tag: v4.14-rc1~8958^2~169 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b194b8cdb83daafd2405fb902193b8e904107614;p=platform%2Fkernel%2Flinux-rpi.git mm/hwpoison: add '#' to madvise_hwpoison Add '#' to madvise_hwpoison. Before patch: [ 95.892866] Injecting memory failure for page 19d0 at b7786000 [ 95.893151] MCE 0x19d0: non LRU page recovery: Ignored After patch: [ 95.892866] Injecting memory failure for page 0x19d0 at 0xb7786000 [ 95.893151] MCE 0x19d0: non LRU page recovery: Ignored Signed-off-by: Wanpeng Li Reviewed-by: Naoya Horiguchi Cc: Andi Kleen Cc: Tony Luck Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/mm/madvise.c b/mm/madvise.c index 936799f042cc..9b1c7be182d7 100644 --- a/mm/madvise.c +++ b/mm/madvise.c @@ -353,14 +353,14 @@ static int madvise_hwpoison(int bhv, unsigned long start, unsigned long end) if (ret != 1) return ret; if (bhv == MADV_SOFT_OFFLINE) { - printk(KERN_INFO "Soft offlining page %lx at %lx\n", + pr_info("Soft offlining page %#lx at %#lx\n", page_to_pfn(p), start); ret = soft_offline_page(p, MF_COUNT_INCREASED); if (ret) break; continue; } - printk(KERN_INFO "Injecting memory failure for page %lx at %lx\n", + pr_info("Injecting memory failure for page %#lx at %#lx\n", page_to_pfn(p), start); /* Ignore return value for now */ memory_failure(page_to_pfn(p), 0, MF_COUNT_INCREASED);