Skip to content

Commit

Permalink
missing printk loglevel and tiny tiny whitespace change in binfmt_elf()
Browse files Browse the repository at this point in the history
Patch adds a mising printk loglevel (I think KERN_WARNING is appropriate
here) in fs/binfmt_elf.c, and while I was there I made some tiny tiny tiny
adjustments to whitespacing in the neighborhood.

Signed-off-by: Jesper Juhl <[email protected]>
Signed-off-by: Adrian Bunk <[email protected]>
  • Loading branch information
Jesper Juhl authored and Adrian Bunk committed Jan 11, 2006
1 parent e97a311 commit 74da6cd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions fs/binfmt_elf.c
Original file line number Diff line number Diff line change
Expand Up @@ -1634,17 +1634,17 @@ static int elf_core_dump(long signr, struct pt_regs * regs, struct file * file)
ELF_CORE_WRITE_EXTRA_DATA;
#endif

if ((off_t) file->f_pos != offset) {
if ((off_t)file->f_pos != offset) {
/* Sanity check */
printk("elf_core_dump: file->f_pos (%ld) != offset (%ld)\n",
(off_t) file->f_pos, offset);
printk(KERN_WARNING "elf_core_dump: file->f_pos (%ld) != offset (%ld)\n",
(off_t)file->f_pos, offset);
}

end_coredump:
set_fs(fs);

cleanup:
while(!list_empty(&thread_list)) {
while (!list_empty(&thread_list)) {
struct list_head *tmp = thread_list.next;
list_del(tmp);
kfree(list_entry(tmp, struct elf_thread_status, list));
Expand Down

0 comments on commit 74da6cd

Please sign in to comment.