@ -222,7 +222,8 @@ int abortboot(int bootdelay)
# ifdef CONFIG_MENUPROMPT
# ifdef CONFIG_MENUPROMPT
printf ( CONFIG_MENUPROMPT ) ;
printf ( CONFIG_MENUPROMPT ) ;
# else
# else
printf ( " Hit any key to stop autoboot: %2d " , bootdelay ) ;
if ( bootdelay > = 0 )
printf ( " Hit any key to stop autoboot: %2d " , bootdelay ) ;
# endif
# endif
# if defined CONFIG_ZERO_BOOTDELAY_CHECK
# if defined CONFIG_ZERO_BOOTDELAY_CHECK
@ -382,7 +383,7 @@ void main_loop (void)
debug ( " ### main_loop: bootcmd= \" %s \" \n " , s ? s : " <UNDEFINED> " ) ;
debug ( " ### main_loop: bootcmd= \" %s \" \n " , s ? s : " <UNDEFINED> " ) ;
if ( bootdelay > = 0 & & s & & ! abortboot ( bootdelay ) ) {
if ( bootdelay ! = - 1 & & s & & ! abortboot ( bootdelay ) ) {
# ifdef CONFIG_AUTOBOOT_KEYED
# ifdef CONFIG_AUTOBOOT_KEYED
int prev = disable_ctrlc ( 1 ) ; /* disable Control C checking */
int prev = disable_ctrlc ( 1 ) ; /* disable Control C checking */
# endif
# endif