summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorHung-Te Lin <hungte@chromium.org>2013-02-20 15:43:47 +0800
committerPatrick Georgi <patrick@georgi-clan.de>2013-02-22 09:23:04 +0100
commit58fd5e1d3d4153ae86a997fcc9b0cfc5fd85e4b7 (patch)
tree461350f1b73fcc1131f19c56035ccb89ce9f23df /src/lib
parent39d497d5cfe62457bcacdd3826663c544b8bab37 (diff)
libcbfs: Fix legacy CBFS API, typos
Pulling CBFS fix from libpayload: http://review.coreboot.org/#/c/2455/2 get_cbfs_header expects CBFS_HEADER_INVALID_ADDRESS (0xffffffff) instead of NULL when something is wrong. Also, fix typo. Change-Id: I7f393f7c24f74a3358f7339a3095b0d845bdc02d Signed-off-by: Hung-Te Lin <hungte@chromium.org> Reviewed-on: http://review.coreboot.org/2457 Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/cbfs_core.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/cbfs_core.c b/src/lib/cbfs_core.c
index da7bb6a912..604d5f44ce 100644
--- a/src/lib/cbfs_core.c
+++ b/src/lib/cbfs_core.c
@@ -62,8 +62,8 @@ const struct cbfs_header *cbfs_get_header(struct cbfs_media *media)
if (media == CBFS_DEFAULT_MEDIA) {
media = &default_media;
if (init_default_cbfs_media(media) != 0) {
- ERROR("Failed to initializee default media.\n");
- return NULL;
+ ERROR("Failed to initialize default media.\n");
+ return CBFS_HEADER_INVALID_ADDRESS;
}
}
@@ -103,7 +103,7 @@ struct cbfs_file *cbfs_get_file(struct cbfs_media *media, const char *name)
if (media == CBFS_DEFAULT_MEDIA) {
media = &default_media;
if (init_default_cbfs_media(media) != 0) {
- ERROR("Failed to initializee default media.\n");
+ ERROR("Failed to initialize default media.\n");
return NULL;
}
}