From: Dave Kleikamp Date: Wed, 20 Jan 2016 19:42:07 +0000 (-0600) Subject: vmcore: quiet zero PT_NOTE warning X-Git-Tag: v4.1.12-92~147^2~3^2 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=47ebef44d2c2da5f7bc806b9dd2dc0ce7c2ba0a3;p=users%2Fjedix%2Flinux-maple.git vmcore: quiet zero PT_NOTE warning When creating a crashdump, this warning shows up on the console for every offline cpu: Warning: Zero PT_NOTE entries found For an ldom, every possible inactive cpu shows up as offline, so let's just print the warning once. Signed-off-by: Dave Kleikamp --- diff --git a/fs/proc/vmcore.c b/fs/proc/vmcore.c index 4e61388ec03d..484c2014a2fb 100644 --- a/fs/proc/vmcore.c +++ b/fs/proc/vmcore.c @@ -559,7 +559,7 @@ static int __init update_note_header_size_elf64(const Elf64_Ehdr *ehdr_ptr) kfree(notes_section); phdr_ptr->p_memsz = real_sz; if (real_sz == 0) { - pr_warn("Warning: Zero PT_NOTE entries found\n"); + pr_warn_once("Warning: Zero PT_NOTE entries found\n"); } }