The progress bar that is displayed during booting from USB stick runs out out
the screen
This change limits the 'dots' to 60 characters at most on a line.
Signed-off-by: Remy Bohmer <[EMAIL PROTECTED]>
---
common/usb_storage.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
Index: u-boot-usb.new/common/usb_storage.c
===================================================================
--- u-boot-usb.new.orig/common/usb_storage.c 2008-12-04 21:59:18.000000000
+0100
+++ u-boot-usb.new/common/usb_storage.c 2008-12-04 22:00:59.000000000 +0100
@@ -175,10 +175,15 @@ block_dev_desc_t *usb_stor_get_dev(int i
return (index < USB_MAX_STOR_DEV) ? &usb_dev_desc[index] : NULL;
}
-
void usb_show_progress(void)
{
+ static int cnt;
+
printf(".");
+ if (cnt++ == 60) {
+ cnt = 0;
+ printf("\n");
+ }
}
/*********************************************************************************
--
_______________________________________________
U-Boot mailing list
[email protected]
http://lists.denx.de/mailman/listinfo/u-boot