<feed xmlns='http://www.w3.org/2005/Atom'>
<title>u-boot.git/common/menu.c, branch v2012.07</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.
</subtitle>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/'/>
<entry>
<title>menu: only timeout when menu is displayed</title>
<updated>2012-06-21T20:34:00+00:00</updated>
<author>
<name>Rob Herring</name>
<email>rob.herring@calxeda.com</email>
</author>
<published>2012-03-28T05:51:32+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=8594753ba0a7151e9352f1994b829f6c2d44a023'/>
<id>8594753ba0a7151e9352f1994b829f6c2d44a023</id>
<content type='text'>
Make the menu timeout apply only when prompt flag is set and after the
menu is displayed. This allows auto boot to work no matter whether prompt
is set or cleared. Use the default selection if the menu times out.

This also fixes the timeout value given to readline_into_buffer to be
seconds instead of 10th of seconds.

Old behavior:

if prompt
  display menu and wait for choice
else
  wait for timeout
  if key pressed
    display menu and wait for choice
  else
    exit command

New behavior:

if prompt
  display menu
  if key pressed
    wait for choice
  else
    boot default entry on timeout
else
  boot default entry

Signed-off-by: Rob Herring &lt;rob.herring@calxeda.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Make the menu timeout apply only when prompt flag is set and after the
menu is displayed. This allows auto boot to work no matter whether prompt
is set or cleared. Use the default selection if the menu times out.

This also fixes the timeout value given to readline_into_buffer to be
seconds instead of 10th of seconds.

Old behavior:

if prompt
  display menu and wait for choice
else
  wait for timeout
  if key pressed
    display menu and wait for choice
  else
    exit command

New behavior:

if prompt
  display menu
  if key pressed
    wait for choice
  else
    boot default entry on timeout
else
  boot default entry

Signed-off-by: Rob Herring &lt;rob.herring@calxeda.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>common, menu: do not trigger timeout again, if a line is read</title>
<updated>2012-02-12T09:11:24+00:00</updated>
<author>
<name>Heiko Schocher</name>
<email>hs@denx.de</email>
</author>
<published>2012-01-16T22:24:29+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=fc4fa6a16db3f5c5671b4f3d32359fa416542cd2'/>
<id>fc4fa6a16db3f5c5671b4f3d32359fa416542cd2</id>
<content type='text'>
Signed-off-by: Heiko Schocher &lt;hs@denx.de&gt;
Cc: Jason Hobbs &lt;jason.hobbs@calxeda.com&gt;
Acked-by: Jason Hobbs &lt;jason.hobbs@calxeda.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Heiko Schocher &lt;hs@denx.de&gt;
Cc: Jason Hobbs &lt;jason.hobbs@calxeda.com&gt;
Acked-by: Jason Hobbs &lt;jason.hobbs@calxeda.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>common, menu: add statusline support</title>
<updated>2012-02-12T09:11:24+00:00</updated>
<author>
<name>Heiko Schocher</name>
<email>hs@denx.de</email>
</author>
<published>2012-01-16T21:13:20+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=e0611dd97bb38ba341b3479974eb2a3271de380e'/>
<id>e0611dd97bb38ba341b3479974eb2a3271de380e</id>
<content type='text'>
add the possibility to show a statusline when printing a menu

Signed-off-by: Heiko Schocher &lt;hs@denx.de&gt;
Cc: Jason Hobbs &lt;jason.hobbs@calxeda.com&gt;
Cc: Mike Frysinger &lt;vapier@gentoo.org&gt;
Acked-by: Mike Frysinger &lt;vapier@gentoo.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
add the possibility to show a statusline when printing a menu

Signed-off-by: Heiko Schocher &lt;hs@denx.de&gt;
Cc: Jason Hobbs &lt;jason.hobbs@calxeda.com&gt;
Cc: Mike Frysinger &lt;vapier@gentoo.org&gt;
Acked-by: Mike Frysinger &lt;vapier@gentoo.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>common: add possibility for readline_into_buffer timeout</title>
<updated>2012-02-12T09:11:23+00:00</updated>
<author>
<name>Heiko Schocher</name>
<email>hs@denx.de</email>
</author>
<published>2012-01-16T21:13:05+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=9c3483113de1204118a1b252bf4c81b899dd12b4'/>
<id>9c3483113de1204118a1b252bf4c81b899dd12b4</id>
<content type='text'>
add possibility to add a timeout when reading a line
into a buffer.

Signed-off-by: Heiko Schocher &lt;hs@denx.de&gt;
Cc: Mike Frysinger &lt;vapier@gentoo.org&gt;
Acked-by: Mike Frysinger &lt;vapier@gentoo.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
add possibility to add a timeout when reading a line
into a buffer.

Signed-off-by: Heiko Schocher &lt;hs@denx.de&gt;
Cc: Mike Frysinger &lt;vapier@gentoo.org&gt;
Acked-by: Mike Frysinger &lt;vapier@gentoo.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>common/menu.c: Fix build warning</title>
<updated>2011-12-05T22:26:40+00:00</updated>
<author>
<name>Anatolij Gustschin</name>
<email>agust@denx.de</email>
</author>
<published>2011-12-03T06:46:07+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=2157497615696c41512d857478158f8546942d70'/>
<id>2157497615696c41512d857478158f8546942d70</id>
<content type='text'>
Fix:
menu.c: In function 'menu_item_print':
menu.c:91: warning: passing argument 1 of 'putc' makes integer from
pointer without a cast

Signed-off-by: Anatolij Gustschin &lt;agust@denx.de&gt;
Acked-by: Heiko Schocher &lt;hs@denx.de&gt;
Tested-by: Heiko Schocher &lt;hs@denx.de&gt;
Acked-by: Marek Vasut &lt;marek.vasut@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fix:
menu.c: In function 'menu_item_print':
menu.c:91: warning: passing argument 1 of 'putc' makes integer from
pointer without a cast

Signed-off-by: Anatolij Gustschin &lt;agust@denx.de&gt;
Acked-by: Heiko Schocher &lt;hs@denx.de&gt;
Tested-by: Heiko Schocher &lt;hs@denx.de&gt;
Acked-by: Marek Vasut &lt;marek.vasut@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>menu.c: use puts() instead of printf() where possible</title>
<updated>2011-11-29T14:43:42+00:00</updated>
<author>
<name>Wolfgang Denk</name>
<email>wd@denx.de</email>
</author>
<published>2011-11-28T19:19:41+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=d887ad54ca74063338bc3108beed0aa4f15d1f6b'/>
<id>d887ad54ca74063338bc3108beed0aa4f15d1f6b</id>
<content type='text'>
common/menu.c used printf() in a number of places to print user
provided, constant strings (like the "title" string).  printf() is
dangerous here for example in case the user unwittingly embeds some
'%' caracters that printf() would interpret as formatting and then
pick up random arguments.  Use puts() instead.

We also omit the trailing ':' in the title line - if a user wants
this, he can provide it as part of the title string.

Signed-off-by: Wolfgang Denk &lt;wd@denx.de&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
common/menu.c used printf() in a number of places to print user
provided, constant strings (like the "title" string).  printf() is
dangerous here for example in case the user unwittingly embeds some
'%' caracters that printf() would interpret as formatting and then
pick up random arguments.  Use puts() instead.

We also omit the trailing ':' in the title line - if a user wants
this, he can provide it as part of the title string.

Signed-off-by: Wolfgang Denk &lt;wd@denx.de&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>common, menu: use abortboot for menu timeout</title>
<updated>2011-10-17T20:25:33+00:00</updated>
<author>
<name>Jason Hobbs</name>
<email>jason.hobbs@calxeda.com</email>
</author>
<published>2011-08-23T11:06:50+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=b41bc5a82d8a67d347f2fc12cf2106b8a37e4336'/>
<id>b41bc5a82d8a67d347f2fc12cf2106b8a37e4336</id>
<content type='text'>
Signed-off-by: Jason Hobbs &lt;jason.hobbs@calxeda.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Jason Hobbs &lt;jason.hobbs@calxeda.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Add generic, reusable menu code</title>
<updated>2011-10-17T20:25:33+00:00</updated>
<author>
<name>Jason Hobbs</name>
<email>jason.hobbs@calxeda.com</email>
</author>
<published>2011-08-23T11:06:49+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=b69bf52dfe34b9d7b2a20845c8a7e7e5978c2d2f'/>
<id>b69bf52dfe34b9d7b2a20845c8a7e7e5978c2d2f</id>
<content type='text'>
This will be used first by the pxe code, but is intended to be
generic and reusable for other jobs in U-boot.

Signed-off-by: Jason Hobbs &lt;jason.hobbs@calxeda.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This will be used first by the pxe code, but is intended to be
generic and reusable for other jobs in U-boot.

Signed-off-by: Jason Hobbs &lt;jason.hobbs@calxeda.com&gt;
</pre>
</div>
</content>
</entry>
</feed>
