[U-Boot] [PATCH 3/5] readline(): Add ability to modify a string buffer

Mike Frysinger vapier at gentoo.org
Sun Oct 25 06:32:26 CET 2009


On Saturday 24 October 2009 17:47:27 Peter Tyser wrote:
> Wolfgang Denk wrote:
> > Peter Tyser wrote:
> >> If the 'buf' parameter is a non-0-length string, its contents will be
> >> edited.  Previously, the initial value of 'buf' was ignored and the
> >> user entered its contents from scratch.
> >
> > What is the purpose of this modification? Are you fixing a bug (which
> > one?) or implementing an extension (which one) or what?
> 
> This change was necessary to add a new "editenv" command.  This change
> allows the readline() function to edit a string instead of just enter
> one from scratch.  In theory this feature could be used for other areas
> of U-Boot in the future, but at this point the only user of it would be
> the "editenv" command which I submitted a patch for.  If the 'editenv'
> patch is rejected, I don't mind this one being rejected too.

+1 from me for new "editenv" :)
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
Url : http://lists.denx.de/pipermail/u-boot/attachments/20091025/9679bbec/attachment.pgp 


More information about the U-Boot mailing list