Print size of file on cbfs_add_file failure. The size of the file after
compression is nice to know. Trivial Signed-off-by: Myles Watson <mylesgw@gmail.com> Acked-by: Myles Watson <mylesgw@gmail.com> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4941 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
parent
bdf4157d81
commit
0d082d512e
|
@ -250,6 +250,7 @@ int add_file_to_cbfs(void *content, uint32_t contentsize, uint32_t location)
|
||||||
ntohl(thisfile->offset), align);
|
ntohl(thisfile->offset), align);
|
||||||
}
|
}
|
||||||
printf("Could not add the file to CBFS, it's probably too big.\n");
|
printf("Could not add the file to CBFS, it's probably too big.\n");
|
||||||
|
printf("File size %d bytes (%dK).\n", contentsize, contentsize/1024);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue