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 <hol...@ahsoftware.de>
---
 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

_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

Reply via email to