commit | b6929f930776344eea324d8f50bff0cf991cd129 | [log] [tgz] |
---|---|---|
author | Wolfgang Denk <wd@pollux.denx.de> | Sun Mar 12 01:59:35 2006 +0100 |
committer | Wolfgang Denk <wd@pollux.denx.de> | Sun Mar 12 01:59:35 2006 +0100 |
tree | ae381c15180d16a1d30d4c5d0a7217741d8aaf64 | |
parent | c26914bbc671924678ff135c3e9b6abcc35bffdd [diff] [blame] |
Add loads of ntohl() in image header handling Patch by Steven Scholz, 10 Jun 2005
diff --git a/common/cmd_nand.c b/common/cmd_nand.c index bb51d91..21adb1b 100644 --- a/common/cmd_nand.c +++ b/common/cmd_nand.c
@@ -717,7 +717,7 @@ cnt = (ntohl(hdr->ih_size) + sizeof(image_header_t)); cnt -= SECTORSIZE; } else { - printf ("\n** Bad Magic Number 0x%x **\n", hdr->ih_magic); + printf ("\n** Bad Magic Number 0x%x **\n", ntohl(hdr->ih_magic)); SHOW_BOOT_PROGRESS (-1); return 1; }