mirror of
https://github.com/team-infusion-developers/android_kernel_samsung_msm8976.git
synced 2024-11-07 04:09:21 +00:00
binfmt_elf_fdpic: Fix build breakage introduced by coredump changes.
Commit f6151dfea2
introduces build
breakage, so this patch fixes it together with some printk formatting
cleanup.
Signed-off-by: Daisuke HATAYAMA <d.hatayama@jp.fujitsu.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
This commit is contained in:
parent
7dbcd8c55f
commit
2f48912d14
1 changed files with 2 additions and 2 deletions
|
@ -1798,11 +1798,11 @@ static int elf_fdpic_core_dump(struct coredump_params *cprm)
|
|||
ELF_CORE_WRITE_EXTRA_DATA;
|
||||
#endif
|
||||
|
||||
if (file->f_pos != offset) {
|
||||
if (cprm->file->f_pos != offset) {
|
||||
/* Sanity check */
|
||||
printk(KERN_WARNING
|
||||
"elf_core_dump: file->f_pos (%lld) != offset (%lld)\n",
|
||||
file->f_pos, offset);
|
||||
cprm->file->f_pos, offset);
|
||||
}
|
||||
|
||||
end_coredump:
|
||||
|
|
Loading…
Reference in a new issue