From f64893a94ffb2b7d79364736fc10aebe9bd9176e Mon Sep 17 00:00:00 2001 From: Stefan Reinauer Date: Thu, 23 Jul 2009 22:03:14 +0000 Subject: CBFS stuff: - update, add, and improve comments - whitespace here and there - remove unused or write-only variables - improve debug output - only build payload.{nrv2b,lzma} for non-cbfs - improved error checking in cbfstool Signed-off-by: Stefan Reinauer Acked-by: Peter Stuge git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4466 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- src/lib/cbfs.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/lib/cbfs.c') diff --git a/src/lib/cbfs.c b/src/lib/cbfs.c index f57a14a800..5a8b5f7762 100644 --- a/src/lib/cbfs.c +++ b/src/lib/cbfs.c @@ -59,16 +59,16 @@ struct cbfs_header *cbfs_master_header(void) struct cbfs_header *header; void *ptr = (void *)*((unsigned long *) CBFS_HEADPTR_ADDR); - printk_debug("Check CBFS header at %p\n", ptr); + printk_spew("Check CBFS header at %p\n", ptr); header = (struct cbfs_header *) ptr; - printk_debug("magic is %08x\n", ntohl(header->magic)); + printk_spew("magic is %08x\n", ntohl(header->magic)); if (ntohl(header->magic) != CBFS_HEADER_MAGIC) { - printk_err("NO CBFS HEADER\n"); + printk_err("ERROR: No valid CBFS header found!\n"); return NULL; } - printk_debug("Found CBFS header at %p\n", ptr); + printk_spew("Found CBFS header at %p\n", ptr); return header; } @@ -86,7 +86,7 @@ struct cbfs_file *cbfs_find(const char *name) while(1) { struct cbfs_file *file = (struct cbfs_file *) offset; if (!cbfs_check_magic(file)) return NULL; - printk_info("Check %s\n", CBFS_NAME(file)); + printk_debug("Check %s\n", CBFS_NAME(file)); if (!strcmp(CBFS_NAME(file), name)) return file; -- cgit v1.2.3