[PATCH] unbreak bootm
Eric Bénard
eric at eukrea.com
Wed Oct 13 05:54:44 EDT 2010
commit a3c1e5d888d0ee317ffc7635694684bb71213c9c was
not tested as all the tests are wrong and it breaks bootm
Signed-off-by: Eric Bénard <eric at eukrea.com>
---
commands/bootm.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/commands/bootm.c b/commands/bootm.c
index 83d36d3..666deeb 100644
--- a/commands/bootm.c
+++ b/commands/bootm.c
@@ -167,7 +167,7 @@ struct image_handle *map_image(const char *filename, int verify)
goto err_out;
}
- if (image_check_magic(header)) {
+ if (! image_check_magic(header)) {
puts ("Bad Magic Number\n");
goto err_out;
}
@@ -332,7 +332,7 @@ static int do_bootm(struct command *cmdtp, int argc, char *argv[])
os_header = &os_handle->header;
- if (image_check_arch(os_header, IH_ARCH)) {
+ if (! image_check_arch(os_header, IH_ARCH)) {
printf("Unsupported Architecture 0x%x\n",
image_get_arch(os_header));
goto err_out;
@@ -409,7 +409,7 @@ static int image_info (ulong addr)
/* Copy header so we can blank CRC field for re-calculation */
memmove (&header, (char *)addr, image_get_header_size());
- if (image_check_magic(hdr)) {
+ if (! image_check_magic(hdr)) {
puts (" Bad Magic Number\n");
return 1;
}
--
1.7.0.4
More information about the barebox
mailing list