mirror of
https://github.com/hardkernel/linux.git
synced 2026-04-18 11:30:53 +09:00
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:
@@ -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.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user