diff options
Diffstat (limited to 'firmware/2lib/2stub.c')
-rw-r--r-- | firmware/2lib/2stub.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/firmware/2lib/2stub.c b/firmware/2lib/2stub.c index 375d4faf..971286cc 100644 --- a/firmware/2lib/2stub.c +++ b/firmware/2lib/2stub.c @@ -5,10 +5,23 @@ * 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; |