Skip to content

Commit

Permalink
binfmt_elf_fdpic: Fix build breakage introduced by coredump changes.
Browse files Browse the repository at this point in the history
Commit f6151df 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>
  • Loading branch information
Daisuke HATAYAMA authored and pmundt committed Jan 4, 2010
1 parent 7dbcd8c commit 2f48912
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fs/binfmt_elf_fdpic.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 2f48912

Please sign in to comment.