提交 2f48912d 编写于 作者: D Daisuke HATAYAMA 提交者: Paul Mundt

binfmt_elf_fdpic: Fix build breakage introduced by coredump changes.

Commit f6151dfe introduces build
breakage, so this patch fixes it together with some printk formatting
cleanup.
Signed-off-by: NDaisuke HATAYAMA <d.hatayama@jp.fujitsu.com>
Signed-off-by: NPaul Mundt <lethal@linux-sh.org>
上级 7dbcd8c5
...@@ -1798,11 +1798,11 @@ static int elf_fdpic_core_dump(struct coredump_params *cprm) ...@@ -1798,11 +1798,11 @@ static int elf_fdpic_core_dump(struct coredump_params *cprm)
ELF_CORE_WRITE_EXTRA_DATA; ELF_CORE_WRITE_EXTRA_DATA;
#endif #endif
if (file->f_pos != offset) { if (cprm->file->f_pos != offset) {
/* Sanity check */ /* Sanity check */
printk(KERN_WARNING printk(KERN_WARNING
"elf_core_dump: file->f_pos (%lld) != offset (%lld)\n", "elf_core_dump: file->f_pos (%lld) != offset (%lld)\n",
file->f_pos, offset); cprm->file->f_pos, offset);
} }
end_coredump: end_coredump:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册