diff --git a/kernel/printk.c b/kernel/printk.c index a2c0a05d4a85..541a91a43849 100644 --- a/kernel/printk.c +++ b/kernel/printk.c @@ -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. */