]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
mm: memory-failure: convert to pr_fmt()
authorKefeng Wang <wangkefeng.wang@huawei.com>
Tue, 26 Jul 2022 08:10:46 +0000 (16:10 +0800)
committerakpm <akpm@linux-foundation.org>
Sat, 30 Jul 2022 01:07:20 +0000 (18:07 -0700)
commit96f96763de26d6ee333d5b2446d1b04a4e6bc75b
tree573ce9c77b47f85b4c99651dbca57c6ba0d6b6f0
parent07252dfea2c7089bca68949710268cbbb0ce509e
mm: memory-failure: convert to pr_fmt()

Use pr_fmt to prefix all pr_<level> output, but unpoison_memory() and
soft_offline_page() are used by error injection, which have own prefixes
like "Unpoison:" and "soft offline:", meanwhile, soft_offline_page() could
be used by memory hotremove, so reset pr_fmt before unpoison_pr_info
definition to keep the original output for them.

[wangkefeng.wang@huawei.com: v3]
Link: https://lkml.kernel.org/r/20220729031919.72331-1-wangkefeng.wang@huawei.com
Link: https://lkml.kernel.org/r/20220726081046.10742-1-wangkefeng.wang@huawei.com
Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com>
Acked-by: Naoya Horiguchi <naoya.horiguchi@nec.com>
Reviewed-by: Miaohe Lin <linmiaohe@huawei.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/memory-failure.c