diff options
author | San Mehat <san@google.com> | 2009-08-06 10:25:21 -0700 |
---|---|---|
committer | San Mehat <san@google.com> | 2009-09-08 16:20:27 -0700 |
commit | ab11f0db95bb270aa1f7a47109fbc3965dd5dbdd (patch) | |
tree | 88924566b6dcf6af7b3c5f16cb5425dde73063a7 /kernel | |
parent | 6962e9ca23f70799bc733d59d177c12e220092a5 (diff) |
kernel: printk: Add non exported function for clearing the log ring buffer
Signed-off-by: San Mehat <san@google.com>
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/printk.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/kernel/printk.c b/kernel/printk.c index cc9404c009ec..84535a6fd5ce 100644 --- a/kernel/printk.c +++ b/kernel/printk.c @@ -244,6 +244,14 @@ static int log_buf_get_len(void) } /* + * Clears the ring-buffer + */ +void log_buf_clear(void) +{ + logged_chars = 0; +} + +/* * Copy a range of characters from the log buffer. */ int log_buf_copy(char *dest, int idx, int len) |