From: Marian Balakowicz Date: Thu, 21 Feb 2008 16:27:49 +0000 (+0100) Subject: [new uImage] Fix erroneous use of image_get_magic() in fdc/usb cmds X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=5583cbf736474ef754e128a54fb78632f57b48fd;p=u-boot.git [new uImage] Fix erroneous use of image_get_magic() in fdc/usb cmds Signed-off-by: Marian Balakowicz --- diff --git a/common/cmd_fdc.c b/common/cmd_fdc.c index c97abfb58e..9ddc59b7a0 100644 --- a/common/cmd_fdc.c +++ b/common/cmd_fdc.c @@ -836,7 +836,7 @@ int do_fdcboot (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]) return 1; } hdr = (image_header_t *)addr; - if (!image_get_magic (hdr)) { + if (!image_check_magic (hdr)) { printf ("Bad Magic Number\n"); return 1; } diff --git a/common/cmd_usb.c b/common/cmd_usb.c index 2d7a85a084..3f1aa7d9fe 100644 --- a/common/cmd_usb.c +++ b/common/cmd_usb.c @@ -388,7 +388,7 @@ int do_usbboot (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]) hdr = (image_header_t *)addr; - if (!image_get_magic (hdr)) { + if (!image_check_magic (hdr)) { printf("\n** Bad Magic Number **\n"); return 1; }