mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-11-25 02:35:22 +00:00
vboot: fix compiling with DEBUG=1
If FOR_TEST is defined, 2common.h defines VB2_DEBUG() to be printf(); it should include stdio.h as well. The HOSTLIB extern linktest links against the vboot1 stub functions, but not the vboot2 stub functions, so it couldn't find vb2ex_printf(). BUG=chromium:682058 BRANCH=none TEST=DEBUG=1 make runtests; DEBUG=1 emerge-reef vboot_reference depthcharge Change-Id: Ibf981a70ca4087ce3d86b02d76e03063b2cfc9e5 Signed-off-by: Randall Spangler <rspangler@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/429310 Commit-Ready: Shelley Chen <shchen@chromium.org> Reviewed-by: Shelley Chen <shchen@chromium.org>
This commit is contained in:
committed by
chrome-bot
parent
62461d719f
commit
e02a19a6c2
1
Makefile
1
Makefile
@@ -493,6 +493,7 @@ HOSTLIB_SRCS = \
|
|||||||
cgpt/cgpt_create.c \
|
cgpt/cgpt_create.c \
|
||||||
cgpt/cgpt_prioritize.c \
|
cgpt/cgpt_prioritize.c \
|
||||||
firmware/2lib/2crc8.c \
|
firmware/2lib/2crc8.c \
|
||||||
|
firmware/2lib/2stub.c \
|
||||||
firmware/lib/cgptlib/cgptlib_internal.c \
|
firmware/lib/cgptlib/cgptlib_internal.c \
|
||||||
firmware/lib/cgptlib/crc32.c \
|
firmware/lib/cgptlib/crc32.c \
|
||||||
firmware/lib/gpt_misc.c \
|
firmware/lib/gpt_misc.c \
|
||||||
|
|||||||
@@ -31,6 +31,7 @@ struct vb2_public_key;
|
|||||||
/* Debug output printf() for tests. Otherwise, it's platform-dependent. */
|
/* Debug output printf() for tests. Otherwise, it's platform-dependent. */
|
||||||
#if defined(VBOOT_DEBUG)
|
#if defined(VBOOT_DEBUG)
|
||||||
# if defined(FOR_TEST)
|
# if defined(FOR_TEST)
|
||||||
|
# include <stdio.h>
|
||||||
# define VB2_DEBUG(format, args...) printf(format, ## args)
|
# define VB2_DEBUG(format, args...) printf(format, ## args)
|
||||||
# else
|
# else
|
||||||
# define VB2_DEBUG(format, args...) vb2ex_printf(__func__, format, ## args)
|
# define VB2_DEBUG(format, args...) vb2ex_printf(__func__, format, ## args)
|
||||||
|
|||||||
Reference in New Issue
Block a user