From: Andrew Morton Date: Thu, 7 Feb 2013 01:27:56 +0000 (+1100) Subject: fs-proc-clean-up-printks-fix X-Git-Tag: next-20130218~1^2~175 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=14077ca53b746f12cc46445c0e245ecbfd143eaf;p=karo-tx-linux.git fs-proc-clean-up-printks-fix grr Cc: Joe Perches Signed-off-by: Andrew Morton --- diff --git a/fs/proc/vmcore.c b/fs/proc/vmcore.c index 603090cc222f..41dd018f72dd 100644 --- a/fs/proc/vmcore.c +++ b/fs/proc/vmcore.c @@ -554,7 +554,7 @@ static int __init parse_crash_elf64_headers(void) ehdr.e_ehsize != sizeof(Elf64_Ehdr) || ehdr.e_phentsize != sizeof(Elf64_Phdr) || ehdr.e_phnum == 0) { - pr_warning("Warning: Core image elf header is not sane\n"); + pr_warn("Warning: Core image elf header is not sane\n"); return -EINVAL; } @@ -609,7 +609,7 @@ static int __init parse_crash_elf32_headers(void) ehdr.e_ehsize != sizeof(Elf32_Ehdr) || ehdr.e_phentsize != sizeof(Elf32_Phdr) || ehdr.e_phnum == 0) { - pr_warning("Warning: Core image elf header is not sane\n"); + pr_warn("Warning: Core image elf header is not sane\n"); return -EINVAL; } @@ -652,7 +652,7 @@ static int __init parse_crash_elf_headers(void) if (rc < 0) return rc; if (memcmp(e_ident, ELFMAG, SELFMAG) != 0) { - pr_warning("Warning: Core image elf header not found\n"); + pr_warn("Warning: Core image elf header not found\n"); return -EINVAL; } @@ -671,7 +671,7 @@ static int __init parse_crash_elf_headers(void) /* Determine vmcore size. */ vmcore_size = get_vmcore_size_elf32(elfcorebuf); } else { - pr_warning("Warning: Core image elf header is not sane\n"); + pr_warn("Warning: Core image elf header is not sane\n"); return -EINVAL; } return 0; @@ -687,7 +687,7 @@ static int __init vmcore_init(void) return rc; rc = parse_crash_elf_headers(); if (rc) { - pr_warning("Kdump: vmcore not initialized\n"); + pr_warn("Kdump: vmcore not initialized\n"); return rc; }