diff mbox

[06/14] flatload: end_code was only used in a debug message

Message ID bc945096e530e9f2e45b1694c47fedb9d401797c.1307014902.git.quintela@redhat.com
State New
Headers show

Commit Message

Juan Quintela June 2, 2011, 11:53 a.m. UTC
Just unfold its definition in only use.

Signed-off-by: Juan Quintela <quintela@redhat.com>
---
 linux-user/flatload.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

Comments

Peter Maydell June 10, 2011, 3:31 p.m. UTC | #1
On 2 June 2011 12:53, Juan Quintela <quintela@redhat.com> wrote:
> -    end_code = textpos + text_len;
>
>     DBG_FLT("%s %s: TEXT=%x-%x DATA=%x-%x BSS=%x-%x\n",
>             id ? "Lib" : "Load", bprm->filename,
> -            (int) start_code, (int) end_code,
> +            (int) start_code, (int) textpos + text_lon,

Typo here, should be "text_len", not "text_lon".

-- PMM
diff mbox

Patch

diff --git a/linux-user/flatload.c b/linux-user/flatload.c
index 580bc21..8dad5df 100644
--- a/linux-user/flatload.c
+++ b/linux-user/flatload.c
@@ -383,7 +383,7 @@  static int load_flat_file(struct linux_binprm * bprm,
     abi_ulong reloc = 0, rp;
     int i, rev, relocs = 0;
     abi_ulong fpos;
-    abi_ulong start_code, end_code;
+    abi_ulong start_code;
     abi_ulong indx_len;

     hdr = ((struct flat_hdr *) bprm->buf);		/* exec-header */
@@ -549,11 +549,10 @@  static int load_flat_file(struct linux_binprm * bprm,

     /* The main program needs a little extra setup in the task structure */
     start_code = textpos + sizeof (struct flat_hdr);
-    end_code = textpos + text_len;

     DBG_FLT("%s %s: TEXT=%x-%x DATA=%x-%x BSS=%x-%x\n",
             id ? "Lib" : "Load", bprm->filename,
-            (int) start_code, (int) end_code,
+            (int) start_code, (int) textpos + text_lon,
             (int) datapos,
             (int) (datapos + data_len),
             (int) (datapos + data_len),