]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
fs-proc-clean-up-printks-fix
authorAndrew Morton <akpm@linux-foundation.org>
Thu, 7 Feb 2013 01:27:56 +0000 (12:27 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 18 Feb 2013 05:47:22 +0000 (16:47 +1100)
grr

Cc: Joe Perches <joe@perches.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
fs/proc/vmcore.c

index 603090cc222f44c41c518508505f5df94b487843..41dd018f72dd00ca1885a34fec2bfc21c94f9a44 100644 (file)
@@ -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;
        }