Wolfgang Denk wrote:
> In message <[EMAIL PROTECTED]> you wrote:
>> I was too terse.  The problem is that I added a progress bar. 
>> Previously, the printout sequence was:
>>    Writing to Flash...
>> followed by an indeterminate wait, followed by the string "done." which 
>> formed the composite:
>>    Writing to Flash... done.
> 
> That's what it shall remain: a single line of text.
> 
>> I added a progress bar, but the progress bar needs to be on a new line. 
> 
> Please don't.
> 
> Best regards,
> Wolfgang Denk

There is no way to add an end marker without using a new line (or use 
'\r' which is really unacceptable, and more justifiably so).  Since we 
are settling in on having 50 (?probably want to use a #define) dots 
unless there are fewer than 50 units to be written, I suppose we can 
live without a end marker.  Sigh, the end marker was the fun part.

I also contend that it was a useful part even if you /know/ that there 
will be 50 dots because the human eye cannot count dots at a glance.

Illustration:

Tell me at a glance how close this is to completion[1]:
Writing to Flash..............................

Now tell me here:
Writing to Flash
                                                   v
..............................

With an added parameter to the flash write routine (which would serve 
double duty to suppress the progress dots), I can condense the above 
into two lines.  This is still 100% more lines than Wolfgang demands, 
but I think it has sufficient value to pay its freight.

Writing to Flash                                  v
..............................

Best regards,
gvb

[1] Answer: 60% done, 40% remaining for all the examples.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users

Reply via email to