Fix printf() format problems with configurable prompts
authorWolfgang Denk <wd@denx.de>
Wed, 16 Jul 2008 14:38:59 +0000 (16:38 +0200)
committerWolfgang Denk <wd@denx.de>
Thu, 31 Jul 2008 15:08:27 +0000 (17:08 +0200)
commitc37207d7f51e19c17f859966f314e27cc1231801
treea872cd09a894e62514c928a82e6771b0e37d00ca
parent54754120637b6a7f4ff774fb199fc550bcfea1da
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: Wolfgang Denk <wd@denx.de>
38 files changed:
common/main.c
doc/README.autoboot
include/configs/APC405.h
include/configs/AmigaOneG3SE.h
include/configs/CPCI405DT.h
include/configs/DU440.h
include/configs/GTH.h
include/configs/KUP4K.h
include/configs/KUP4X.h
include/configs/MVBLUE.h
include/configs/NC650.h
include/configs/PLU405.h
include/configs/PMC440.h
include/configs/RPXlite_DW.h
include/configs/SXNI855T.h
include/configs/atngw100.h
include/configs/atstk1002.h
include/configs/atstk1003.h
include/configs/atstk1004.h
include/configs/atstk1006.h
include/configs/gth2.h
include/configs/gw8260.h
include/configs/hymod.h
include/configs/linkstation.h
include/configs/lwmon.h
include/configs/lwmon5.h
include/configs/m501sk.h
include/configs/motionpro.h
include/configs/mp2usb.h
include/configs/netstar.h
include/configs/ppmc8260.h
include/configs/quantum.h
include/configs/rmu.h
include/configs/sacsng.h
include/configs/sbc8260.h
include/configs/sc3.h
include/configs/trab.h
include/configs/utx8245.h