[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 11/48] bsd-user: style tweak: Remove #if 0'd code
From: |
imp |
Subject: |
[PATCH v2 11/48] bsd-user: style tweak: Remove #if 0'd code |
Date: |
Sat, 24 Apr 2021 09:59:39 -0600 |
From: Warner Losh <imp@bsdimp.com>
Signed-off-by: Warner Losh <imp@bsdimp.com>
---
bsd-user/elfload.c | 12 ------------
1 file changed, 12 deletions(-)
diff --git a/bsd-user/elfload.c b/bsd-user/elfload.c
index 87154283ef..2c6764d372 100644
--- a/bsd-user/elfload.c
+++ b/bsd-user/elfload.c
@@ -1270,9 +1270,6 @@ int load_elf_binary(struct linux_binprm *bprm, struct
target_pt_regs *regs,
ibcs2_interpreter = 1;
}
-#if 0
- printf("Using ELF interpreter %s\n", path(elf_interpreter));
-#endif
if (retval >= 0) {
retval = open(path(elf_interpreter), O_RDONLY);
if (retval >= 0) {
@@ -1529,15 +1526,6 @@ int load_elf_binary(struct linux_binprm *bprm, struct
target_pt_regs *regs,
padzero(elf_bss, elf_brk);
-#if 0
- printf("(start_brk) %x\n" , info->start_brk);
- printf("(end_code) %x\n" , info->end_code);
- printf("(start_code) %x\n" , info->start_code);
- printf("(end_data) %x\n" , info->end_data);
- printf("(start_stack) %x\n" , info->start_stack);
- printf("(brk) %x\n" , info->brk);
-#endif
-
if (info->personality == PER_SVR4)
{
/* Why this, you ask??? Well SVr4 maps page 0 as read-only,
--
2.22.1
- Re: [PATCH v2 43/48] bsd-user: style tweak: fold long lines, (continued)
- [PATCH v2 29/48] bsd-user: style tweak: use {} correctly, imp, 2021/04/24
- [PATCH v2 23/48] bsd-user: introduce host_os.h for bsd-specific code and defaults, imp, 2021/04/24
- [PATCH v2 45/48] bsd-user: style tweak: Use preferred {} in if/else statements., imp, 2021/04/24
- [PATCH v2 31/48] bsd-user: style tweak: use {} for all if statements, format else correctly, imp, 2021/04/24
- [PATCH v2 39/48] bsd-user: style tweak: spaces around =, remove stray space, imp, 2021/04/24
- [PATCH v2 11/48] bsd-user: style tweak: Remove #if 0'd code,
imp <=
- [PATCH v2 25/48] bsd-user: move x86 (i386 and x86_64) cpu_loop to target_arch_cpu.h, imp, 2021/04/24
- [PATCH v2 26/48] bsd-user: move sparc cpu_loop into target_arch_cpu.h as target_cpu_loop, imp, 2021/04/24
- [PATCH v2 42/48] bsd-user: style tweak: spaces around operators and commas, imp, 2021/04/24
- [PATCH v2 38/48] bsd-user: style tweak: use {} for all if statements, format else correctly, imp, 2021/04/24
- [PATCH v2 44/48] bsd-user: style tweak: use preferred block comments, imp, 2021/04/24