coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
vboot_lib.c
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 
3 #include <console/console.h>
4 #include <console/vtxprintf.h>
5 #include <vb2_api.h>
6 
7 /*
8  * vboot callbacks implemented by coreboot -- necessary for making general API
9  * calls when CONFIG(VBOOT_LIB) is enabled. For callbacks specific to verstage
10  * CONFIG(VBOOT), please see vboot_logic.c.
11  */
12 
13 void vb2ex_printf(const char *func, const char *fmt, ...)
14 {
15  va_list args;
16 
17  if (func)
18  printk(BIOS_INFO, "VB2:%s() ", func);
19 
20  va_start(args, fmt);
21  vprintk(BIOS_INFO, fmt, args);
22  va_end(args);
23 }
24 
25 void vb2ex_abort(void)
26 {
27  die("vboot has aborted execution; exit\n");
28 }
struct @413::@414 args
#define printk(level,...)
Definition: stdlib.h:16
void __noreturn die(const char *fmt,...)
Definition: die.c:17
int vprintk(int msg_level, const char *fmt, va_list args)
Definition: printk.c:128
#define BIOS_INFO
BIOS_INFO - Expected events.
Definition: loglevel.h:113
#define va_end(v)
Definition: stdarg.h:14
#define va_start(v, l)
Note: This file is only for POSIX compatibility, and is meant to be chain-included via string....
Definition: stdarg.h:13
__builtin_va_list va_list
Definition: stdarg.h:16
void vb2ex_abort(void)
Definition: vboot_lib.c:25
void vb2ex_printf(const char *func, const char *fmt,...)
Definition: vboot_lib.c:13