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 Arve Hjønnevåg
parent 4992adfafb
commit 90bb75ece8

View File

@ -268,6 +268,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.
*/