aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/fs/elf.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/fs/elf.c')
-rw-r--r--src/kernel/fs/elf.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/kernel/fs/elf.c b/src/kernel/fs/elf.c
index 62c4e8d..9af3636 100644
--- a/src/kernel/fs/elf.c
+++ b/src/kernel/fs/elf.c
@@ -40,14 +40,12 @@ uint32_t load_elf(char *elf_data)
v_begin = p_entry->vaddr;
v_end = p_entry->vaddr + p_entry->memsz;
if (v_begin < USER_OFFSET) {
- warn("load_elf(): can't load executable below %x\n",
- USER_OFFSET);
+ warn("load_elf(): can't load executable below %x\n", USER_OFFSET);
return 0;
}
if (v_end > USER_STACK) {
- warn("load_elf(): can't load executable above %x\n",
- USER_STACK);
+ warn("load_elf(): can't load executable above %x\n", USER_STACK);
return 0;
}
@@ -65,4 +63,4 @@ uint32_t load_elf(char *elf_data)
}
return hdr->entry;
-}
+} \ No newline at end of file