summaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorSan Mehat <san@google.com>2009-08-06 10:25:21 -0700
committerDan Willemsen <dwillemsen@nvidia.com>2011-11-30 21:38:13 -0800
commitd46f9b31be7f79fc2b457396a2ad5579e2326b81 (patch)
treed0d23f8c8d4e3abe6d1a47a46b51ff86b6771c7e /kernel
parentd3253b2ae4be819f6a83c75e56482288e8d04c00 (diff)
kernel: printk: Add non exported function for clearing the log ring buffer
Signed-off-by: San Mehat <san@google.com>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/printk.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/kernel/printk.c b/kernel/printk.c
index 2a8a61c666ba..beff95d3bcb8 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)