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;
}
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;
}
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;
}
/* 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;
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;
}