projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d3f8fd3
)
kernel: printk: Add non exported function for clearing the log ring buffer
author
San Mehat
<san@google.com>
Thu, 6 Aug 2009 17:25:21 +0000
(10:25 -0700)
committer
Colin Cross
<ccross@android.com>
Tue, 14 Jun 2011 16:09:18 +0000
(09:09 -0700)
Signed-off-by: San Mehat <san@google.com>
kernel/printk.c
patch
|
blob
|
history
diff --git
a/kernel/printk.c
b/kernel/printk.c
index cd8fbf3440a88d5a53bc88964a93cd7ac974f491..d8b51657c010dbeb908a6ed710f95b26602ecd6c 100644
(file)
--- a/
kernel/printk.c
+++ b/
kernel/printk.c
@@
-302,6
+302,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.
*/