david/ipxe
david
/
ipxe
Archived
1
0
Fork 0

[image] Skip misleading "format not recognised" error message

Return success (rather than failure) after an image format has been
correctly identified.

This has no practical effect, since the return value from
image_probe() is deliberately never used, but avoids a somewhat
surprising and misleading "format not recognised" error message when
debugging is enabled.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Michael Brown 2016-04-28 12:12:50 +01:00
parent 55e409b14f
commit b696a5063e
1 changed files with 1 additions and 1 deletions

View File

@ -191,7 +191,7 @@ static int image_probe ( struct image *image ) {
image->type = type;
DBGC ( image, "IMAGE %s is %s\n",
image->name, type->name );
break;
return 0;
}
DBGC ( image, "IMAGE %s is not %s: %s\n", image->name,
type->name, strerror ( rc ) );