From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alexander Holler Date: Tue, 25 Jan 2011 11:15:37 +0100 Subject: [U-Boot] [PATCH] Change the visible output for transfers to display hex numbers Message-ID: <1295950537-12363-1-git-send-email-holler@ahsoftware.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de When files were transfered the output is currently - Bytes transferred = 1976384 (1e2840 hex) - Using the decimal length as input for other commands conflicts with the the default base of 16 needed. Change the output to - Bytes transferred = 0x1e2840 (1976384 bytes) - to reflect what should be used as input for other commands. Signed-off-by: Alexander Holler --- net/net.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/net/net.c b/net/net.c index a609632..a454411 100644 --- a/net/net.c +++ b/net/net.c @@ -528,7 +528,7 @@ restart: case NETLOOP_SUCCESS: if (NetBootFileXferSize > 0) { char buf[20]; - printf("Bytes transferred = %ld (%lx hex)\n", + printf("Bytes transferred = 0x%lx (%ld bytes)\n", NetBootFileXferSize, NetBootFileXferSize); sprintf(buf, "%lX", NetBootFileXferSize); -- 1.7.3.4