From 427261fbcfe9098a3b3858463b5939bb805b0c3a Mon Sep 17 00:00:00 2001 From: Vadim Bendebury Date: Fri, 10 Oct 2014 13:24:55 -0700 Subject: [PATCH] cbfs: fix debug mode compilation error When cbfs debug is enabled, compilation fails because one of the debug messages is using an non-existing variable. BRANCH=nonr BUG=None TEST=compiling with CONFIG_DEBUG_CBFS enabled does not fail anymore. Change-Id: Ic83f5e96cdcb5275ec0b7fadbc901e254a1002ca Signed-off-by: Vadim Bendebury Reviewed-on: https://chromium-review.googlesource.com/222897 Reviewed-by: Aaron Durbin --- src/lib/cbfs.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/lib/cbfs.c b/src/lib/cbfs.c index afbdeb56de..3e53ff5c1c 100644 --- a/src/lib/cbfs.c +++ b/src/lib/cbfs.c @@ -173,8 +173,7 @@ void *cbfs_load_stage_by_offset(struct cbfs_media *media, ssize_t offset) { struct cbfs_stage stage; - DEBUG("reading stage header: offset=0x%x len=%d type=%d offset=0x%x\n", - offset, file.len, file.type, file.offset); + DEBUG("reading stage header: offset=0x%x\n", offset); if (cbfs_read(media, &stage, offset, sizeof(stage)) != sizeof(stage)) { ERROR("ERROR: failed to read stage header\n"); return CBFS_LOAD_ERROR;