diff options
author | Stefan Reinauer <stepan@coresystems.de> | 2009-07-23 22:03:14 +0000 |
---|---|---|
committer | Patrick Georgi <patrick.georgi@coresystems.de> | 2009-07-23 22:03:14 +0000 |
commit | f64893a94ffb2b7d79364736fc10aebe9bd9176e (patch) | |
tree | 67bf3d26a9b2a6a7e82eb704b4e0e028e80ea844 /src/lib/cbfs.c | |
parent | aeb6c9870f0b1af8c0b55b2034f881da6757c4a4 (diff) |
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 <stepan@coresystems.de>
Acked-by: Peter Stuge <peter@stuge.se>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4466 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/lib/cbfs.c')
-rw-r--r-- | src/lib/cbfs.c | 10 |
1 files changed, 5 insertions, 5 deletions
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; |