Skip to contentSkip to conversation

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

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

lore
Share & tools
lore

Paul Bolle

author
#0 lore raw

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

Make an "#if 0"'d printf() in load_elf_binary(), probably left to aid in debugging, reflect what the actual code does. The current printf() will only confuse those who "#if 1" it (it certainly confused me enough to write this trivial patch).

---
bsd-user/elfload.c could use a similar fix if this is accepted.

 linux-user/elfload.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
linux-user/elfload.c +1 -1
index 07277a6..62a3f2a 100644
@@ -1454,7 +1454,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