kernel: printk: Add non exported function for clearing the log ring buffer

Signed-off-by: San Mehat <san@google.com>
This commit is contained in:
San Mehat
2009-08-06 10:25:21 -07:00
committed by Colin Cross
parent d8858c010b
commit 755d3f1c9b

View 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.
*/