Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2f48912d authored by Daisuke HATAYAMA's avatar Daisuke HATAYAMA Committed by Paul Mundt
Browse files

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: default avatarDaisuke HATAYAMA <d.hatayama@jp.fujitsu.com>
Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
parent 7dbcd8c5
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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: