kernel: printk: Add non exported function for clearing the log ring buffer
authorSan Mehat <san@google.com>
Thu, 6 Aug 2009 17:25:21 +0000 (10:25 -0700)
committerColin Cross <ccross@android.com>
Thu, 30 Sep 2010 00:49:24 +0000 (17:49 -0700)
Signed-off-by: San Mehat <san@google.com>
kernel/printk.c

index 2d594092d3e16c42b33886acad2935926d974c39..48ce53f5bb0aea396efda118ba0ebf54f2944301 100644 (file)
@@ -273,6 +273,14 @@ static int log_buf_get_len(void)
        return logged_chars;
 }
 
+/*
+ * Clears the ring-buffer
+ */
+void log_buf_clear(void)
+{
+       logged_chars = 0;
+}
+
 /*
  * Copy a range of characters from the log buffer.
  */