summaryrefslogtreecommitdiffstats
path: root/kernel/printk.c
diff options
context:
space:
mode:
authorroel kluin <roel.kluin@gmail.com>2008-10-21 19:49:09 -0400
committerIngo Molnar <mingo@elte.hu>2008-10-23 21:54:29 +0200
commitacff181d3574244e651913df77332e897b88bff4 (patch)
treeff3ccaeb76856d7b6e14a6bf35f3d356be34adb9 /kernel/printk.c
parentd2441183dc222d12961ff2201f5086c846505d93 (diff)
downloadop-kernel-dev-acff181d3574244e651913df77332e897b88bff4.zip
op-kernel-dev-acff181d3574244e651913df77332e897b88bff4.tar.gz
printk: remove unused code from kernel/printk.c
both log_buf_copy() and log_buf_len are unused. Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/printk.c')
-rw-r--r--kernel/printk.c39
1 files changed, 0 insertions, 39 deletions
diff --git a/kernel/printk.c b/kernel/printk.c
index 6341af7..f492f15 100644
--- a/kernel/printk.c
+++ b/kernel/printk.c
@@ -233,45 +233,6 @@ static inline void boot_delay_msec(void)
#endif
/*
- * Return the number of unread characters in the log buffer.
- */
-static int log_buf_get_len(void)
-{
- return logged_chars;
-}
-
-/*
- * Copy a range of characters from the log buffer.
- */
-int log_buf_copy(char *dest, int idx, int len)
-{
- int ret, max;
- bool took_lock = false;
-
- if (!oops_in_progress) {
- spin_lock_irq(&logbuf_lock);
- took_lock = true;
- }
-
- max = log_buf_get_len();
- if (idx < 0 || idx >= max) {
- ret = -1;
- } else {
- if (len > max)
- len = max;
- ret = len;
- idx += (log_end - max);
- while (len-- > 0)
- dest[len] = LOG_BUF(idx + len);
- }
-
- if (took_lock)
- spin_unlock_irq(&logbuf_lock);
-
- return ret;
-}
-
-/*
* Commands to do_syslog:
*
* 0 -- Close the log. Currently a NOP.
OpenPOWER on IntegriCloud