X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=doc%2FREADME.autoboot;h=2042fe5c4063b95e791cbbd29744f85665782e10;hb=e389a377ee3ad8d137c9af749ddf2354be0d4a7c;hp=e4c41867351a2233bc623c753adc00eaf3919dd1;hpb=8b74bf31fe57edfc502f94e905977304eac943ca;p=u-boot diff --git a/doc/README.autoboot b/doc/README.autoboot index e4c4186735..2042fe5c40 100644 --- a/doc/README.autoboot +++ b/doc/README.autoboot @@ -114,10 +114,17 @@ What they do CONFIG_AUTOBOOT_PROMPT is displayed before the boot delay selected by CONFIG_BOOTDELAY starts. If it is not defined there is no output indicating that autoboot is in progress. - If "%d" is included, it is replaced by the number of seconds - remaining before autoboot will start, but it does not count - down the seconds. "autoboot in %d seconds\n" is a reasonable - prompt. + + Note that CONFIG_AUTOBOOT_PROMPT is used as the (only) + argument to a printf() call, so it may contain '%' format + specifications, provided that it also includes, sepearated by + commas exactly like in a printf statement, the required + arguments. It is the responsibility of the user to select only + such arguments that are valid in the given context. A + reasonable prompt could be defined as + + #define CONFIG_AUTOBOOT_PROMPT \ + "autoboot in %d seconds\n",bootdelay If CONFIG_AUTOBOOT_DELAY_STR or "bootdelaykey" is specified and this string is received from console input before