summaryrefslogtreecommitdiff
path: root/kernel/printk.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/printk.c')
-rw-r--r--kernel/printk.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/kernel/printk.c b/kernel/printk.c
index 80fd0514705..d531ed38274 100644
--- a/kernel/printk.c
+++ b/kernel/printk.c
@@ -303,6 +303,14 @@ static int log_buf_get_len(void)
}
/*
+ * Clears the ring-buffer
+ */
+void log_buf_clear(void)
+{
+ logged_chars = 0;
+}
+
+/*
* Copy a range of characters from the log buffer.
*/
int log_buf_copy(char *dest, int idx, int len)