summaryrefslogtreecommitdiff
path: root/src/console/printk.c
diff options
context:
space:
mode:
authorAaron Durbin <adurbin@chromium.org>2015-05-01 16:48:54 -0500
committerPatrick Georgi <pgeorgi@google.com>2015-05-05 17:46:35 +0200
commit8fb36c07ac4eb34da61894bba260ab57c4b7f9db (patch)
tree97b9dbe4bc0355d6847efb4e5946e912478272d8 /src/console/printk.c
parented98eeea8451f7f9a320525e73fb448371adb34f (diff)
console: rename do_vtxprintf to do_printk_va_list and use it
The name is more consistent with what we have elsewhere, and the callsite didn't build at all (with vboot enabled) Change-Id: I3576f3b8f737d360f68b67b6ce1683199948776d Signed-off-by: Aaron Durbin <adurbin@chromium.org> Signed-off-by: Patrick Georgi <pgeorgi@chromium.org> Reviewed-on: http://review.coreboot.org/10096 Tested-by: build bot (Jenkins)
Diffstat (limited to 'src/console/printk.c')
-rw-r--r--src/console/printk.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/console/printk.c b/src/console/printk.c
index 10a7da21f3..aab7ff5f67 100644
--- a/src/console/printk.c
+++ b/src/console/printk.c
@@ -54,8 +54,10 @@ int do_printk(int msg_level, const char *fmt, ...)
}
#if IS_ENABLED (CONFIG_CHROMEOS)
-void do_vtxprintf(const char *fmt, va_list args)
+void do_printk_va_list(int msg_level, const char *fmt, va_list args)
{
+ if (!console_log_level(msg_level))
+ return;
vtxprintf(wrap_putchar, fmt, args, NULL);
console_tx_flush();
}