1. 21 Jun, 2012 1 commit
    • Rob Herring's avatar
      menu: only timeout when menu is displayed · 8594753b
      Rob Herring authored
      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: default avatarRob Herring <rob.herring@calxeda.com>
      8594753b
  2. 12 Feb, 2012 3 commits
  3. 05 Dec, 2011 1 commit
  4. 29 Nov, 2011 1 commit
    • Wolfgang Denk's avatar
      menu.c: use puts() instead of printf() where possible · d887ad54
      Wolfgang Denk authored
      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: default avatarWolfgang Denk <wd@denx.de>
      d887ad54
  5. 28 Nov, 2011 1 commit
    • Wolfgang Denk's avatar
      menu.c: use puts() instead of printf() where possible · a63d9652
      Wolfgang Denk authored
      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: default avatarWolfgang Denk <wd@denx.de>
      a63d9652
  6. 17 Oct, 2011 2 commits