mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2025-09-28 09:11:34 +02:00
tools: kwbimage: Fix endianity when printing kwbimage header
All fields in kwbimage header are in little endian format. Signed-off-by: Pali Rohár <pali@kernel.org>
This commit is contained in:
parent
ee3da92d85
commit
9f39f19926
@ -1928,9 +1928,9 @@ static void kwbimage_print_header(const void *ptr)
|
|||||||
}
|
}
|
||||||
|
|
||||||
printf("Data Size: ");
|
printf("Data Size: ");
|
||||||
genimg_print_size(mhdr->blocksize - sizeof(uint32_t));
|
genimg_print_size(le32_to_cpu(mhdr->blocksize) - sizeof(uint32_t));
|
||||||
printf("Load Address: %08x\n", mhdr->destaddr);
|
printf("Load Address: %08x\n", le32_to_cpu(mhdr->destaddr));
|
||||||
printf("Entry Point: %08x\n", mhdr->execaddr);
|
printf("Entry Point: %08x\n", le32_to_cpu(mhdr->execaddr));
|
||||||
}
|
}
|
||||||
|
|
||||||
static int kwbimage_check_image_types(uint8_t type)
|
static int kwbimage_check_image_types(uint8_t type)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user