aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorSan Mehat <san@google.com>2009-08-06 10:25:21 -0700
committerColin Cross <ccross@android.com>2011-06-14 09:09:18 -0700
commitce84ca9acef1cb5209b7d0f1fff7b6a5640fab2f (patch)
tree44175201674c01f542e2ee653c91d5c437a98d59 /kernel
parentd3f8fd3e74564f3241dc2ef7501b1ae13f7d1f13 (diff)
downloadkernel_samsung_espresso10-ce84ca9acef1cb5209b7d0f1fff7b6a5640fab2f.zip
kernel_samsung_espresso10-ce84ca9acef1cb5209b7d0f1fff7b6a5640fab2f.tar.gz
kernel_samsung_espresso10-ce84ca9acef1cb5209b7d0f1fff7b6a5640fab2f.tar.bz2
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 cd8fbf3..d8b5165 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)