27 Mar, 2016

1 commit


28 May, 2015

1 commit

  • Previously, if the menu activated by the 'sysboot' command gets
    interrupted by a Ctrl-C, the behaviour is as if the menu timeout was
    reached - i.e. boot the default menu entry. This patch fixes that
    so a Ctrl-C now terminates the command as the user would expect.

    Signed-off-by: Tuomas Tynkkynen
    Reviewed-by: Simon Glass

    Tuomas Tynkkynen
     

25 Oct, 2014

1 commit


30 May, 2014

2 commits


24 Jul, 2013

1 commit


29 Mar, 2013

2 commits


22 Jun, 2012

1 commit

  • 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

    Rob Herring
     

12 Feb, 2012

3 commits


06 Dec, 2011

1 commit

  • 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
    Acked-by: Heiko Schocher
    Tested-by: Heiko Schocher
    Acked-by: Marek Vasut

    Anatolij Gustschin
     

29 Nov, 2011

1 commit

  • 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

    Wolfgang Denk
     

18 Oct, 2011

2 commits