summaryrefslogtreecommitdiff
path: root/src/console
diff options
context:
space:
mode:
authorIru Cai <mytbk920423@gmail.com>2018-12-12 10:01:23 +0800
committerIru Cai <mytbk920423@gmail.com>2019-11-17 15:10:42 +0800
commit5749ccbacf9ca604b03296704410c0447c77f6f6 (patch)
treefee43c22978cb5b6e673abd49064dc3fea825950 /src/console
parentf9f245d531427556200416b9d2c880df71931204 (diff)
downloadcoreboot-5749ccbacf9ca604b03296704410c0447c77f6f6.tar.xz
replace the printf function in mrc.bin
Diffstat (limited to 'src/console')
-rw-r--r--src/console/printk.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/console/printk.c b/src/console/printk.c
index 4f9f547bc5..d950697510 100644
--- a/src/console/printk.c
+++ b/src/console/printk.c
@@ -126,6 +126,19 @@ int do_vprintk(int msg_level, const char *fmt, va_list args)
return i;
}
+int mrc_printk(const char *fmt, ...)
+{
+ int i;
+ va_list args;
+
+ va_start(args, fmt);
+ i = vtxprintf(wrap_putchar, fmt, args, NULL);
+ va_end(args);
+ console_tx_flush();
+
+ return i;
+}
+
int do_printk(int msg_level, const char *fmt, ...)
{
va_list args;