From 0d082d512eb8346552ec5187eb1acd1c99fe36c7 Mon Sep 17 00:00:00 2001 From: Myles Watson Date: Thu, 12 Nov 2009 17:46:59 +0000 Subject: 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 Acked-by: Myles Watson git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4941 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- util/cbfstool/common.c | 1 + 1 file changed, 1 insertion(+) (limited to 'util/cbfstool') diff --git a/util/cbfstool/common.c b/util/cbfstool/common.c index 1f69fa37f5..c45c00769e 100644 --- a/util/cbfstool/common.c +++ b/util/cbfstool/common.c @@ -250,6 +250,7 @@ int add_file_to_cbfs(void *content, uint32_t contentsize, uint32_t location) ntohl(thisfile->offset), align); } 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; } -- cgit v1.2.3