summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorWolfgang Denk <wd@denx.de>2010-07-19 11:36:59 +0200
committerWolfgang Denk <wd@denx.de>2010-07-24 20:53:50 +0200
commit226fa9bb9ed7e3f0642cb47b26bef44ca7b9d7b9 (patch)
tree4866290f8ab16973466df88ead5898338d65cb46 /common
parent2aa98c6612fc34145d1f692cf610690955362bd0 (diff)
downloadu-boot-imx-226fa9bb9ed7e3f0642cb47b26bef44ca7b9d7b9.zip
u-boot-imx-226fa9bb9ed7e3f0642cb47b26bef44ca7b9d7b9.tar.gz
u-boot-imx-226fa9bb9ed7e3f0642cb47b26bef44ca7b9d7b9.tar.bz2
usb_storage.c: change progress output in debug() message
The dots printed by common/usb_storage.c as progress meter corrupt the output for example of "fatls usb" commands like this: => fatls usb 0 . <<==== here 29 file.001 29 file.002 29 file.003 29 file.004 29 file.005 29 file.006 29 file.007 29 file.008 29 file.009 29 file.010 29 file.011 29 file.012 29 file.013 29 file.014 29 file.015 29 file.016 . <<==== here 29 file.017 29 file.018 29 file.019 ... Turn the progress output into a debug message. Signed-off-by: Wolfgang Denk <wd@denx.de> Cc: Remy Bohmer <linux@bohmer.net>
Diffstat (limited to 'common')
-rw-r--r--common/usb_storage.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/common/usb_storage.c b/common/usb_storage.c
index 9f31265..76949b8 100644
--- a/common/usb_storage.c
+++ b/common/usb_storage.c
@@ -181,7 +181,7 @@ block_dev_desc_t *usb_stor_get_dev(int index)
void usb_show_progress(void)
{
- printf(".");
+ debug(".");
}
/*******************************************************************************
@@ -1081,7 +1081,7 @@ retry_it:
usb_disable_asynch(0); /* asynch transfer allowed */
if (blkcnt >= USB_MAX_READ_BLK)
- printf("\n");
+ debug("\n");
return blkcnt;
}
@@ -1161,7 +1161,7 @@ retry_it:
usb_disable_asynch(0); /* asynch transfer allowed */
if (blkcnt >= USB_MAX_WRITE_BLK)
- printf("\n");
+ debug("\n");
return blkcnt;
}