tools: rockchip: loaderimage: print file size with KB

load addr is 0x600000!
pack input ./u-boot.bin
pack file size: 484551(473 KB)
crc = 0xfef42a0e
uboot version: U-Boot 2017.09-02804-ge3e39ee-dirty (Apr 10 2019 - 14:11:39)

Change-Id: If8fbdd943e328db41523ded47deeedfe8c6bde0e
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
This commit is contained in:
Joseph Chen 2019-04-10 14:12:04 +08:00
parent e65f23e90c
commit 2bbbd780f8
1 changed files with 1 additions and 1 deletions

View File

@ -229,7 +229,7 @@ int main(int argc, char *argv[])
fseek(fi, 0, SEEK_END);
size = ftell(fi);
fseek(fi, 0, SEEK_SET);
printf("pack file size: %d \n", size);
printf("pack file size: %d(%d KB)\n", size, size / 1024);
if (size > max_size - sizeof(second_loader_hdr)) {
perror(file_out);
exit(EXIT_FAILURE);