diff options
author | San Mehat <san@google.com> | 2009-08-06 10:25:21 -0700 |
---|---|---|
committer | Colin Cross <ccross@android.com> | 2012-02-14 11:26:35 -0800 |
commit | 0cfa041818ccb83c234b1151d1b2417cb17dec7a (patch) | |
tree | eb75d8d7486e467703ba2d52541d13056f6d6dd5 /kernel | |
parent | a828919ab77fa1e6f4b6091df7f9975e8607ebfb (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 d438eedae6e..26610f1fe56 100644 --- a/kernel/printk.c +++ b/kernel/printk.c @@ -303,6 +303,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) |