summaryrefslogtreecommitdiff
path: root/include/configs/AmigaOneG3SE.h
diff options
context:
space:
mode:
authorWolfgang Denk <wd@denx.de>2008-07-16 14:38:59 (GMT)
committerWolfgang Denk <wd@denx.de>2008-07-31 15:08:27 (GMT)
commitc37207d7f51e19c17f859966f314e27cc1231801 (patch)
treea872cd09a894e62514c928a82e6771b0e37d00ca /include/configs/AmigaOneG3SE.h
parent54754120637b6a7f4ff774fb199fc550bcfea1da (diff)
downloadu-boot-c37207d7f51e19c17f859966f314e27cc1231801.tar.xz
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>
Diffstat (limited to 'include/configs/AmigaOneG3SE.h')
-rw-r--r--include/configs/AmigaOneG3SE.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/configs/AmigaOneG3SE.h b/include/configs/AmigaOneG3SE.h
index a992498..84efd2f 100644
--- a/include/configs/AmigaOneG3SE.h
+++ b/include/configs/AmigaOneG3SE.h
@@ -371,7 +371,8 @@
#define CONFIG_BOOTDELAY 5 /* Boot automatically after five seconds */
#define CONFIG_PREBOOT ""
#define CONFIG_BOOTCOMMAND "fdcboot; diskboot"
-#define CONFIG_MENUPROMPT "Press any key to interrupt autoboot: %2d "
+#define CONFIG_MENUPROMPT \
+ "Press any key to interrupt autoboot: %2d ", bootdelay
#define CONFIG_MENUKEY ' '
#define CONFIG_MENUCOMMAND "menu"
/* #define CONFIG_AUTOBOOT_KEYED */