Skip to contentSkip to conversation

bsd-user: fix "#if 0"'d printf()

PATCH New Paul Bolle 1 participant 1 message Oct 4, 2009

lore
Share & tools
lore

Paul Bolle

author
#0 lore raw

PATCH 1/1 bsd-user: fix "#if 0"'d printf()

Make an "#if 0"'d printf() in load_elf_binary() reflect what the actual code does (see commit 3bc0bdcaadef1100ce2413af818d9c8e2f6319fc).

---
Entirely untested (I do not run *BSD).

 bsd-user/elfload.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
bsd-user/elfload.c +1 -1
index 33ddcc4..8ac14b7 100644
@@ -1246,7 +1246,7 @@ int load_elf_binary(struct linux_binprm * bprm, struct target_pt_regs * regs,
             }
 
 #if 0
-            printf("Using ELF interpreter %s\n", elf_interpreter);
+            printf("Using ELF interpreter %s\n", path(elf_interpreter));
 #endif
             if (retval >= 0) {
                 retval = open(path(elf_interpreter), O_RDONLY);
Signature · 1 line
1.6.5.rc2