mirror of https://github.com/ipxe/ipxe.git
[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>pull/53/head
parent
55e409b14f
commit
b696a5063e
|
@ -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 ) );
|
||||
|
|
Loading…
Reference in New Issue