From patchwork Tue Jan 25 10:15:37 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Holler X-Patchwork-Id: 80342 X-Patchwork-Delegate: wd@denx.de Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id D9FFC1007D1 for ; Tue, 25 Jan 2011 21:16:43 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 22B8A28087; Tue, 25 Jan 2011 11:16:40 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id l6+ZU7aDrPk2; Tue, 25 Jan 2011 11:16:39 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 5B21C28080; Tue, 25 Jan 2011 11:16:38 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 1A3E128080 for ; Tue, 25 Jan 2011 11:16:36 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 1c4tk5JJ742r for ; Tue, 25 Jan 2011 11:16:34 +0100 (CET) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mail.ahsoftware.de (h1047321.serverkompetenz.net [85.214.67.163]) by theia.denx.de (Postfix) with ESMTPS id 0C7052807D for ; Tue, 25 Jan 2011 11:16:32 +0100 (CET) Received: by mail.ahsoftware.de (Postfix, from userid 65534) id 9572559806B; Tue, 25 Jan 2011 11:16:32 +0100 (CET) Received: from eiche.ahsoftware (p57B205BA.dip0.t-ipconnect.de [87.178.5.186]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.ahsoftware.de (Postfix) with ESMTP id C7E1A59806B; Tue, 25 Jan 2011 11:16:29 +0100 (CET) Received: from krabat.ahsoftware (krabat.ahsoftware [192.168.207.2]) by eiche.ahsoftware (Postfix) with ESMTP id 44FA84BBD0; Tue, 25 Jan 2011 11:16:11 +0100 (CET) From: Alexander Holler To: u-boot@lists.denx.de Date: Tue, 25 Jan 2011 11:15:37 +0100 Message-Id: <1295950537-12363-1-git-send-email-holler@ahsoftware.de> X-Mailer: git-send-email 1.7.3.4 Subject: [U-Boot] [PATCH] Change the visible output for transfers to display hex numbers X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.9 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@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);