Skip to content
Browse files
[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 <>
  • Loading branch information
mcb30 committed Apr 28, 2016
1 parent 55e409b commit b696a5063e80aa68cb064a8ac0098edd31632555
Showing 1 changed file with 1 addition and 1 deletion.
@@ -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 );
return 0;
DBGC ( image, "IMAGE %s is not %s: %s\n", image->name,
type->name, strerror ( rc ) );

0 comments on commit b696a50

Please sign in to comment.