Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[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>
  • Loading branch information
mcb30 committed Apr 28, 2016
1 parent 55e409b commit b696a50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/image.c
Expand Up @@ -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 ) );
Expand Down

0 comments on commit b696a50

Please sign in to comment.