qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH][TRIVIAL] linux-user: fix "#if 0"'d printf()
@ 2009-10-02 12:06 Paul Bolle
  0 siblings, 0 replies; only message in thread
From: Paul Bolle @ 2009-10-02 12:06 UTC (permalink / raw)
  To: qemu-devel

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>
---
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(-)

diff --git a/linux-user/elfload.c b/linux-user/elfload.c
index 07277a6..62a3f2a 100644
--- a/linux-user/elfload.c
+++ b/linux-user/elfload.c
@@ -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);
-- 
1.6.5.rc2

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2009-10-02 12:07 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-02 12:06 [Qemu-devel] [PATCH][TRIVIAL] linux-user: fix "#if 0"'d printf() Paul Bolle

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).