From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:45214) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QXFsr-0007cE-HN for qemu-devel@nongnu.org; Thu, 16 Jun 2011 12:59:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QXFrn-0000hv-B5 for qemu-devel@nongnu.org; Thu, 16 Jun 2011 12:57:33 -0400 Received: from mnementh.archaic.org.uk ([81.2.115.146]:57917) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QXFrm-0000hX-Uv for qemu-devel@nongnu.org; Thu, 16 Jun 2011 12:56:27 -0400 From: Peter Maydell Date: Thu, 16 Jun 2011 17:37:11 +0100 Message-Id: <1308242235-8261-5-git-send-email-peter.maydell@linaro.org> In-Reply-To: <1308242235-8261-1-git-send-email-peter.maydell@linaro.org> References: <1308242235-8261-1-git-send-email-peter.maydell@linaro.org> Subject: [Qemu-devel] [PATCH 4/8] flatload: end_code was only used in a debug message List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Riku Voipio , Juan Quintela , patches@linaro.org From: Juan Quintela Just unfold its definition in only use. Signed-off-by: Juan Quintela [peter.maydell@linaro.org: fixed typo in the debug code, added parentheses to fix precedence issue] Signed-off-by: Peter Maydell --- linux-user/flatload.c | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff --git a/linux-user/flatload.c b/linux-user/flatload.c index cd7af7c..6fb78f5 100644 --- a/linux-user/flatload.c +++ b/linux-user/flatload.c @@ -384,7 +384,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 */ @@ -552,11 +552,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_len), (int) datapos, (int) (datapos + data_len), (int) (datapos + data_len), -- 1.7.1