[U-Boot-Users] [PATCH 3/4] Move buffer print code from md commandto common function
Grant Likely
grant.likely at secretlab.ca
Wed Feb 14 21:01:25 CET 2007
On 2/14/07, Ulf Samuelsson <ulf at atmel.com> wrote:
>
> Would it not generate less (better) code if you do something like:
>
> rc = read_dataflash(addr, (linebytes/size)*size, linebuf);
> p = (rc == DATAFLASH_OK)? linebuf : (void*)addr; /* or an if statement */
> print_buffer(addr, p, size, linebytes/size,DISP_LINE_LEN/size);
Yep, that would work. I can make that change.
g.
--
Grant Likely, B.Sc. P.Eng.
Secret Lab Technologies Ltd.
grant.likely at secretlab.ca
(403) 399-0195
More information about the U-Boot
mailing list