kernel: printk: Add non exported function for clearing the log ring buffer
San Mehat [Thu, 6 Aug 2009 17:25:21 +0000 (10:25 -0700)]
Signed-off-by: San Mehat <san@google.com>

kernel/printk.c

index 2a8a61c..beff95d 100644 (file)
@@ -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)