summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authorMichael Brown2016-04-28 13:12:50 +0200
committerMichael Brown2016-04-28 13:12:50 +0200
commitb696a5063e80aa68cb064a8ac0098edd31632555 (patch)
tree900f4d8c28733491fad73814b353ca8df4ea0ad0 /src/core
parent[libgcc] Provide symbol to handle gcc's implicit calls to memset() (diff)
downloadipxe-b696a5063e80aa68cb064a8ac0098edd31632555.tar.gz
ipxe-b696a5063e80aa68cb064a8ac0098edd31632555.tar.xz
ipxe-b696a5063e80aa68cb064a8ac0098edd31632555.zip
[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>
Diffstat (limited to 'src/core')
-rw-r--r--src/core/image.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/image.c b/src/core/image.c
index 4a4e9c2a..a185b82f 100644
--- a/src/core/image.c
+++ b/src/core/image.c
@@ -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 ) );