Skip to content

Commit

Permalink
[autoboot] Tidy up output following NBP execution
Browse files Browse the repository at this point in the history
If the NBP returns, then always print a trailing newline, since some
NBPs (e.g. wdsnbp.com) leave the cursor in a random position halfway
across the screen.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
  • Loading branch information
mcb30 committed Mar 2, 2011
1 parent 3c9c27b commit 8a61e37
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/usr/autoboot.c
Expand Up @@ -175,8 +175,14 @@ int uriboot ( struct uri *filename, struct uri *root_path ) {
if ( filename ) {
if ( ( rc = imgdownload ( image, filename,
register_and_autoexec_image ) ) !=0){
printf ( "Could not chain image: %s\n",
printf ( "\nCould not chain image: %s\n",
strerror ( rc ) );
} else {
/* Always print an extra newline, because we
* don't know where the NBP may have left the
* cursor.
*/
printf ( "\n" );
}
} else if ( root_path ) {
if ( fetch_intz_setting ( NULL, &skip_san_boot_setting) == 0 ) {
Expand Down

0 comments on commit 8a61e37

Please sign in to comment.