diff --git a/kernel/printk.c b/kernel/printk.c index 5c3880d58f2..f1bb173f274 100644 --- a/kernel/printk.c +++ b/kernel/printk.c @@ -305,6 +305,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. */