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 <vbendeb@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/222897
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
This commit is contained in:
Vadim Bendebury 2014-10-10 13:24:55 -07:00 committed by chrome-internal-fetch
commit 427261fbcf

View file

@ -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;