Commit 226fa9bb9ed7e3f0642cb47b26bef44ca7b9d7b9

Authored by Wolfgang Denk
1 parent 2aa98c6612

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>

Showing 1 changed file with 3 additions and 3 deletions Side-by-side Diff

common/usb_storage.c
... ... @@ -181,7 +181,7 @@
181 181  
182 182 void usb_show_progress(void)
183 183 {
184   - printf(".");
  184 + debug(".");
185 185 }
186 186  
187 187 /*******************************************************************************
... ... @@ -1081,7 +1081,7 @@
1081 1081  
1082 1082 usb_disable_asynch(0); /* asynch transfer allowed */
1083 1083 if (blkcnt >= USB_MAX_READ_BLK)
1084   - printf("\n");
  1084 + debug("\n");
1085 1085 return blkcnt;
1086 1086 }
1087 1087  
... ... @@ -1161,7 +1161,7 @@
1161 1161  
1162 1162 usb_disable_asynch(0); /* asynch transfer allowed */
1163 1163 if (blkcnt >= USB_MAX_WRITE_BLK)
1164   - printf("\n");
  1164 + debug("\n");
1165 1165 return blkcnt;
1166 1166  
1167 1167 }