summaryrefslogtreecommitdiffstats
path: root/common/console.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/console.c')
-rw-r--r--common/console.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/common/console.c b/common/console.c
index de487fc140..68ef80ea95 100644
--- a/common/console.c
+++ b/common/console.c
@@ -301,6 +301,17 @@ int fputs(int fd, const char *s)
}
EXPORT_SYMBOL(fputs);
+void console_flush(void)
+{
+ struct console_device *cdev;
+
+ for_each_console(cdev) {
+ if (cdev->flush)
+ cdev->flush(cdev);
+ }
+}
+EXPORT_SYMBOL(console_flush);
+
void fprintf (int file, const char *fmt, ...)
{
va_list args;