Error message cleanups.
This commit is contained in:
parent
1ae40765a6
commit
710c6c1be1
@ -167,7 +167,8 @@ static int imgfetch_core_exec ( struct image_type *image_type,
|
|||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
if ( ( rc = imgfetch ( image, filename, image_register ) ) != 0 ) {
|
if ( ( rc = imgfetch ( image, filename, image_register ) ) != 0 ) {
|
||||||
printf ( "Could not fetch %s: %s\n", name, strerror ( rc ) );
|
printf ( "Could not fetch %s: %s\n",
|
||||||
|
filename, strerror ( rc ) );
|
||||||
image_put ( image );
|
image_put ( image );
|
||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
|
@ -62,7 +62,7 @@ static int boot_filename ( const char *filename ) {
|
|||||||
}
|
}
|
||||||
if ( ( rc = imgfetch ( image, filename,
|
if ( ( rc = imgfetch ( image, filename,
|
||||||
register_and_autoexec_image ) ) != 0 ) {
|
register_and_autoexec_image ) ) != 0 ) {
|
||||||
printf ( "Could not retrieve %s: %s\n",
|
printf ( "Could not boot %s: %s\n",
|
||||||
filename, strerror ( rc ) );
|
filename, strerror ( rc ) );
|
||||||
image_put ( image );
|
image_put ( image );
|
||||||
return rc;
|
return rc;
|
||||||
|
Reference in New Issue
Block a user