From 5749ccbacf9ca604b03296704410c0447c77f6f6 Mon Sep 17 00:00:00 2001 From: Iru Cai Date: Wed, 12 Dec 2018 10:01:23 +0800 Subject: replace the printf function in mrc.bin --- src/console/printk.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/console') 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; -- cgit v1.2.3