Skip to content
Snippets Groups Projects
Commit c37207d7 authored by Wolfgang Denk's avatar Wolfgang Denk
Browse files

Fix printf() format problems with configurable prompts


U-Boot allows for configurable prompt strings using the
CONFIG_AUTOBOOT_PROMPT resp. CONFIG_MENUPROMPT definitions. So far,
the assumption was that any such user defined problts would contain
exactly one "%d" format specifier. But some boards did not.

To allow for flexible boot prompts without adding too complex code we
now allow to specify the whole list of printf() arguments in the user
definition. This is powerful, but requires a responsible user who
really understands what he is doing, as he needs to know for exanple
which variables are available in the respective context.

Signed-off-by: default avatarWolfgang Denk <wd@denx.de>
parent 54754120
No related branches found
No related tags found
No related merge requests found
Showing
with 55 additions and 36 deletions
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment