diff options
author | Bill Richardson <wfrichar@chromium.org> | 2015-01-26 13:48:32 -0800 |
---|---|---|
committer | ChromeOS Commit Bot <chromeos-commit-bot@chromium.org> | 2015-02-23 22:40:11 +0000 |
commit | 38d0f99cf0c931280b307c760b01272607f95571 (patch) | |
tree | 5d5418a729bf7f087ba08a34529503ddc26be402 | |
parent | e24524e2bb790b384e79979dc417110b10c57c1f (diff) | |
download | vboot-38d0f99cf0c931280b307c760b01272607f95571.tar.gz |
vboot2: Add stub implementation for vb2ex_printf()
BUG=none
BRANCH=ToT
TEST=manual
make VBOOT2=1 DEBUG=1 runtests
Change-Id: I5e99082d713e2f8ad2c56a10b86d0e0a44037549
Signed-off-by: Bill Richardson <wfrichar@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/243360
Reviewed-by: Randall Spangler <rspangler@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/252184
Commit-Queue: Vadim Bendebury <vbendeb@chromium.org>
Tested-by: Vadim Bendebury <vbendeb@chromium.org>
Reviewed-by: Vadim Bendebury <vbendeb@chromium.org>
-rw-r--r-- | firmware/2lib/2stub.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/firmware/2lib/2stub.c b/firmware/2lib/2stub.c index 7c9e5b17..01084c94 100644 --- a/firmware/2lib/2stub.c +++ b/firmware/2lib/2stub.c @@ -5,9 +5,24 @@ * Stub API implementations which should be implemented by the caller. */ +#include <stdarg.h> +#include <stdio.h> + #include "2sysincludes.h" #include "2api.h" +__attribute__((weak)) +void vb2ex_printf(const char *func, const char *fmt, ...) +{ + va_list ap; + va_start(ap, fmt); + fprintf(stderr, "%s: ", func); + vfprintf(stderr, fmt, ap); + va_end(ap); +} + +__attribute__((weak)) + int vb2ex_tpm_clear_owner(struct vb2_context *ctx) { return VB2_ERROR_EX_TPM_CLEAR_OWNER_UNIMPLEMENTED; |