Re: [PATCH] mm, memory hotplug: print debug message in the proper way for online_pages

From: David Rientjes
Date: Thu Feb 25 2016 - 03:29:19 EST


On Thu, 25 Feb 2016, Chen Yucong wrote:

> online_pages() simply returns an error value if
> memory_notify(MEM_GOING_ONLINE, &arg) return a value that is not
> what we want for successfully onlining target pages. This patch
> arms to print more failure information like offline_pages() in
> online_pages.
>
> This patch also converts printk(KERN_<LEVEL>) to pr_<level>(),
> and moves __offline_pages() to not print failure information with
> KERN_INFO according to David Rientjes's suggestion[1].
>
> [1] https://lkml.org/lkml/2016/2/24/1094
>
> Signed-off-by: Chen Yucong <slaoub@xxxxxxxxx>

Acked-by: David Rientjes <rientjes@xxxxxxxxxx>

Cool!