linux-user: fix "#if 0"'d printf()
authorPaul Bolle <pebolle@tiscali.nl>
Fri, 2 Oct 2009 12:06:47 +0000 (14:06 +0200)
committerAurelien Jarno <aurelien@aurel32.net>
Sun, 4 Oct 2009 11:24:45 +0000 (13:24 +0200)
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).

Signed-off-by: Paul Bolle <pebolle@tiscali.nl>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
linux-user/elfload.c

index 07277a6..62a3f2a 100644 (file)
@@ -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);